diff options
| author | pierwill <19642016+pierwill@users.noreply.github.com> | 2020-12-17 12:02:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-17 12:02:34 -0800 |
| commit | 54cce72da5b0505e1c617d4359bfe45c3235908a (patch) | |
| tree | 7147ed0178b5099936ee11a5fc76d458fcc6089f /compiler/rustc_span | |
| parent | d23e08448332425a84ae23124bea4dbd685536ce (diff) | |
| download | rust-54cce72da5b0505e1c617d4359bfe45c3235908a.tar.gz rust-54cce72da5b0505e1c617d4359bfe45c3235908a.zip | |
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.
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index f61a32a0f79..9e08e540caa 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -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() } |
