mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
Rollup merge of #110376 - aDotInTheVoid:doc-comment, r=jyn514
Convert comment to doc comment on `Interner::get`.
This commit is contained in:
commit
ff39942d33
@ -1986,8 +1986,9 @@ impl Interner {
|
|||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the symbol as a string. `Symbol::as_str()` should be used in
|
/// Get the symbol as a string.
|
||||||
// preference to this function.
|
///
|
||||||
|
/// [`Symbol::as_str()`] should be used in preference to this function.
|
||||||
fn get(&self, symbol: Symbol) -> &str {
|
fn get(&self, symbol: Symbol) -> &str {
|
||||||
self.0.lock().strings[symbol.0.as_usize()]
|
self.0.lock().strings[symbol.0.as_usize()]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user