Skip to content

Commit 266ec68

Browse files
committed
Convert comment to doc comment on Interner::get.
1 parent fd57c6b commit 266ec68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_span/src/symbol.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1986,8 +1986,9 @@ impl Interner {
19861986
name
19871987
}
19881988

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

0 commit comments

Comments
 (0)