1 parent
39d45bcbc1
commit
5bd7eaa173
35 files changed
+99
-89
No files matched your search
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user