mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
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
This commit is contained in:
parent
dde27483a4
commit
f19e84dc22
@ -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<SharedString>) -> 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,
|
||||
|
Loading…
Reference in New Issue
Block a user