diff options
| author | Alona Enraght-Moony <code@alona.page> | 2023-04-15 21:48:39 +0000 |
|---|---|---|
| committer | Alona Enraght-Moony <code@alona.page> | 2023-04-15 21:50:57 +0000 |
| commit | 266ec68d3d7dd6bf369f79baea7f0d889b86b7a1 (patch) | |
| tree | 5b96e5ecf4fe166b515086e79902ae889662635e | |
| parent | fd57c6b407d5f038060d7b94ce9af22ea4b0dcf0 (diff) | |
| download | rust-266ec68d3d7dd6bf369f79baea7f0d889b86b7a1.tar.gz rust-266ec68d3d7dd6bf369f79baea7f0d889b86b7a1.zip | |
Convert comment to doc comment on `Interner::get`.
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 5 |
1 files 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()] } |
