Skip to content

Commit 54cce72

Browse files
authored
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.
1 parent d23e084 commit 54cce72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ impl Symbol {
16321632
self == kw::True || self == kw::False
16331633
}
16341634

1635-
/// This symbol can be a raw identifier.
1635+
/// Returns `true` if this symbol can be a raw identifier.
16361636
pub fn can_be_raw(self) -> bool {
16371637
self != kw::Invalid && self != kw::Underscore && !self.is_path_segment_keyword()
16381638
}

0 commit comments

Comments
 (0)