Skip to content

Commit

Permalink
docs: Edit rustc_span::symbol::Symbol method
Browse files Browse the repository at this point in the history
Edit wording of the doc comment for rustc_span::symbol::Symbol::can_be_raw
to match related methods.
  • Loading branch information
pierwill authored Dec 17, 2020
1 parent d23e084 commit 54cce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 54cce72

Please sign in to comment.