From f19e84dc221c95913566bbabd4f2a4380127e243 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 1 Apr 2024 19:25:17 -0400 Subject: [PATCH] Fix doc comments for `StyledText` (#10058) This PR fixes some doc comments for `StyledText` to better reflect Rust doc comment conventions. Release Notes: - N/A --- crates/gpui/src/elements/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui/src/elements/text.rs b/crates/gpui/src/elements/text.rs index 8ca5c39026a71f6dccde86c4926d73a27380eda8..7278560dc2bbb2996d0745ee0f92f36c8088bc5d 100644 --- a/crates/gpui/src/elements/text.rs +++ b/crates/gpui/src/elements/text.rs @@ -118,7 +118,7 @@ impl StyledText { } } - /// Lets you modify the text + /// Sets the text for this [`StyledText`]. pub fn with_text(mut self, text: impl Into) -> Self { self.text = text.into(); self @@ -152,7 +152,7 @@ impl StyledText { self } - /// line_layout returns metadata about how the line will be rendered + /// Lays out this line of [`StyledText`] at the specified font size. pub fn layout_line( &self, font_size: Pixels,