From 266ec68d3d7dd6bf369f79baea7f0d889b86b7a1 Mon Sep 17 00:00:00 2001 From: Alona Enraght-Moony Date: Sat, 15 Apr 2023 21:48:39 +0000 Subject: [PATCH] Convert comment to doc comment on `Interner::get`. --- compiler/rustc_span/src/symbol.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 6bfae377152..6ce0b66ef6a 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -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()] }