Skip to content

Commit dd21914

Browse files
committed
Remove outdated comment about static SmolStrs
1 parent 79e0fee commit dd21914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-expand/src/name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Name {
6868
Self::new_text(lt.text().into())
6969
}
7070

71-
/// Shortcut to create inline plain text name. Panics if `text.len() > 22`
71+
/// Shortcut to create a name from a string literal.
7272
const fn new_static(text: &'static str) -> Name {
7373
Name::new_text(SmolStr::new_static(text))
7474
}

0 commit comments

Comments
 (0)