about summary refs log tree commit diff
diff options
context:
space:
mode:
-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))
     }