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:
commit
6cb576a137
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue