about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2024-03-02 10:56:03 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2024-03-02 10:56:03 +0200
commitdd21914e9d7f8a21749375512647d11b9c0ba723 (patch)
tree3f818e8865115808483249bd002e253153a4f818
parent79e0fee6a30a5f563e9b709cc5959694709e19c4 (diff)
downloadrust-dd21914e9d7f8a21749375512647d11b9c0ba723.tar.gz
rust-dd21914e9d7f8a21749375512647d11b9c0ba723.zip
Remove outdated comment about static SmolStrs
-rw-r--r--crates/hir-expand/src/name.rs2
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))
     }