mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Rollup merge of #80130 - pierwill:patch-7, r=oli-obk
docs: Edit rustc_span::symbol::Symbol method Edit wording of the doc comment for [rustc_span::symbol::Symbol::can_be_raw](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/symbol/struct.Symbol.html#method.can_be_raw) to match related methods.
This commit is contained in:
commit
5eb15267ae
@ -1632,7 +1632,7 @@ impl Symbol {
|
|||||||
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