docs: Edit rustc_span::symbol::Symbol method
Edit wording of the doc comment for rustc_span::symbol::Symbol::can_be_raw to match related methods.
This commit is contained in:
parent
d23e084483
commit
54cce72da5
@ -1632,7 +1632,7 @@ pub fn is_bool_lit(self) -> bool {
|
|||||||
self == kw::True || self == kw::False
|
self == kw::True || self == kw::False
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This symbol can be a raw identifier.
|
/// Returns `true` if this symbol can be a raw identifier.
|
||||||
pub fn can_be_raw(self) -> bool {
|
pub fn can_be_raw(self) -> bool {
|
||||||
self != kw::Invalid && self != kw::Underscore && !self.is_path_segment_keyword()
|
self != kw::Invalid && self != kw::Underscore && !self.is_path_segment_keyword()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user