mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 00:43:50 +00:00
Convert comment to doc comment on Interner::get
.
This commit is contained in:
parent
fd57c6b407
commit
266ec68d3d
@ -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()]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user