Skip to content

Commit

Permalink
Convert comment to doc comment on Interner::get.
Browse files Browse the repository at this point in the history
  • Loading branch information
aDotInTheVoid committed Apr 15, 2023
1 parent fd57c6b commit 266ec68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1986,8 +1986,9 @@ impl Interner {
name
}

// Get the symbol as a string. `Symbol::as_str()` should be used in
// preference to this function.
/// Get the symbol as a string.
///
/// [`Symbol::as_str()`] should be used in preference to this function.
fn get(&self, symbol: Symbol) -> &str {
self.0.lock().strings[symbol.0.as_usize()]
}
Expand Down

0 comments on commit 266ec68

Please sign in to comment.