Auto merge of #16735 - lnicola:smolstr-new-static, r=lnicola

minor: Remove outdated comment about static SmolStrs

Closes https://github.com/rust-lang/rust-analyzer/issues/16734
This commit is contained in:
bors 2024-03-02 08:57:47 +00:00
commit 6cb576a137

View file

@ -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))
}