diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-03-02 10:56:03 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-03-02 10:56:03 +0200 |
| commit | dd21914e9d7f8a21749375512647d11b9c0ba723 (patch) | |
| tree | 3f818e8865115808483249bd002e253153a4f818 | |
| parent | 79e0fee6a30a5f563e9b709cc5959694709e19c4 (diff) | |
| download | rust-dd21914e9d7f8a21749375512647d11b9c0ba723.tar.gz rust-dd21914e9d7f8a21749375512647d11b9c0ba723.zip | |
Remove outdated comment about static SmolStrs
| -rw-r--r-- | crates/hir-expand/src/name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-expand/src/name.rs b/crates/hir-expand/src/name.rs index 91c362399e7..cf17d90ed12 100644 --- a/crates/hir-expand/src/name.rs +++ b/crates/hir-expand/src/name.rs @@ -68,7 +68,7 @@ impl Name { Self::new_text(lt.text().into()) } - /// Shortcut to create inline plain text name. Panics if `text.len() > 22` + /// Shortcut to create a name from a string literal. const fn new_static(text: &'static str) -> Name { Name::new_text(SmolStr::new_static(text)) } |
