Skip to content

Commit 5eb1526

Browse files
authored
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.
2 parents ea6cc5a + 54cce72 commit 5eb1526

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)