We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Interner::get
1 parent fd57c6b commit 266ec68Copy full SHA for 266ec68
compiler/rustc_span/src/symbol.rs
@@ -1986,8 +1986,9 @@ impl Interner {
1986
name
1987
}
1988
1989
- // Get the symbol as a string. `Symbol::as_str()` should be used in
1990
- // preference to this function.
+ /// Get the symbol as a string.
+ ///
1991
+ /// [`Symbol::as_str()`] should be used in preference to this function.
1992
fn get(&self, symbol: Symbol) -> &str {
1993
self.0.lock().strings[symbol.0.as_usize()]
1994
0 commit comments