Remove outdated comment about static SmolStrs

This commit is contained in:
Laurențiu Nicola 2024-03-02 10:56:03 +02:00
parent 79e0fee6a3
commit dd21914e9d

View file

@ -68,7 +68,7 @@ impl Name {
Self::new_text(lt.text().into()) 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 { const fn new_static(text: &'static str) -> Name {
Name::new_text(SmolStr::new_static(text)) Name::new_text(SmolStr::new_static(text))
} }