diff options
| author | fee1-dead <ent3rm4n@gmail.com> | 2023-04-16 14:24:32 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-16 14:24:32 +0800 |
| commit | ff39942d33a21e7ea8f805f096ea60a9c4c07f6e (patch) | |
| tree | 65757c8bb5f29ed4998879d6efaf99f5fb00cc08 | |
| parent | 2a711152615ad9294dc0e5ee6885c8e9bb8418a9 (diff) | |
| parent | 266ec68d3d7dd6bf369f79baea7f0d889b86b7a1 (diff) | |
| download | rust-ff39942d33a21e7ea8f805f096ea60a9c4c07f6e.tar.gz rust-ff39942d33a21e7ea8f805f096ea60a9c4c07f6e.zip | |
Rollup merge of #110376 - aDotInTheVoid:doc-comment, r=jyn514
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()] } |
