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:
Ralf Jung 2020-12-18 16:22:07 +01:00 committed by GitHub
commit 5eb15267ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
} }