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:
pierwill 2020-12-17 12:02:34 -08:00 committed by GitHub
parent d23e084483
commit 54cce72da5
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
}
/// This symbol can be a raw identifier.
/// Returns `true` if this symbol can be a raw identifier.
pub fn can_be_raw(self) -> bool {
self != kw::Invalid && self != kw::Underscore && !self.is_path_segment_keyword()
}