We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79e0fee commit dd21914Copy full SHA for dd21914
crates/hir-expand/src/name.rs
@@ -68,7 +68,7 @@ impl Name {
68
Self::new_text(lt.text().into())
69
}
70
71
- /// Shortcut to create inline plain text name. Panics if `text.len() > 22`
+ /// Shortcut to create a name from a string literal.
72
const fn new_static(text: &'static str) -> Name {
73
Name::new_text(SmolStr::new_static(text))
74
0 commit comments