Rollup merge of #110376 - aDotInTheVoid:doc-comment, r=jyn514

Convert comment to doc comment on `Interner::get`.
This commit is contained in:
fee1-dead 2023-04-16 14:24:32 +08:00 committed by GitHub
commit ff39942d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()]
}