Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/name.rs')
| -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 91c362399e..cf17d90ed1 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)) } |