parent
39d45bcbc1
commit
5bd7eaa173
35 changed files with 99 additions and 89 deletions
|
@ -16,7 +16,7 @@ impl SharedString {
|
|||
Self(ArcCow::Borrowed(str))
|
||||
}
|
||||
|
||||
/// Creates a [`SharedString`] from anything that can become an Arc<str>
|
||||
/// Creates a [`SharedString`] from anything that can become an `Arc<str>`
|
||||
pub fn new(str: impl Into<Arc<str>>) -> Self {
|
||||
SharedString(ArcCow::Owned(str.into()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue