Skip to content

Commit

Permalink
Rollup merge of #80130 - pierwill:patch-7, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RalfJung authored Dec 18, 2020
2 parents ea6cc5a + 54cce72 commit 5eb1526
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 5eb1526

Please sign in to comment.