We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79e0fee + dd21914 commit 6cb576aCopy full SHA for 6cb576a
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