mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 21:49:33 +00:00
gpui: Update doc comment for SharedString::new_static
(#18234)
This PR updates the doc comment for `SharedString::new_static`. Release Notes: - N/A
This commit is contained in:
parent
20826336d9
commit
65bb989c61
1 changed files with 3 additions and 3 deletions
|
@ -10,9 +10,9 @@ use util::arc_cow::ArcCow;
|
|||
pub struct SharedString(ArcCow<'static, str>);
|
||||
|
||||
impl SharedString {
|
||||
/// creates a static SharedString
|
||||
pub const fn new_static(s: &'static str) -> Self {
|
||||
Self(ArcCow::Borrowed(s))
|
||||
/// Creates a static [`SharedString`] from a `&'static str`.
|
||||
pub const fn new_static(str: &'static str) -> Self {
|
||||
Self(ArcCow::Borrowed(str))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue