Skip to content

Commit 6cb576a

Browse files
committed
Auto merge of rust-lang#16735 - lnicola:smolstr-new-static, r=lnicola
minor: Remove outdated comment about static SmolStrs Closes rust-lang/rust-analyzer#16734
2 parents 79e0fee + dd21914 commit 6cb576a

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)