mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
Remove outdated comment about static SmolStrs
This commit is contained in:
parent
79e0fee6a3
commit
dd21914e9d
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…
Reference in a new issue