From 65bb989c61e90271e544566b7999feaa9e8ff105 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 23 Sep 2024 12:16:51 -0400 Subject: [PATCH] gpui: Update doc comment for `SharedString::new_static` (#18234) This PR updates the doc comment for `SharedString::new_static`. Release Notes: - N/A --- crates/gpui/src/shared_string.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/shared_string.rs b/crates/gpui/src/shared_string.rs index f5aef6adf8..e1fd4f1a5c 100644 --- a/crates/gpui/src/shared_string.rs +++ b/crates/gpui/src/shared_string.rs @@ -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)) } }