Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ui: Fix doctest (#12985)

Yan Qian8edfd0a9633c
diff --git a/crates/ui/src/components/label/label.rs b/crates/ui/src/components/label/label.rs
index 5560e9fea8e..70ccb654466 100644
--- a/crates/ui/src/components/label/label.rs
+++ b/crates/ui/src/components/label/label.rs
@@ -62,7 +62,7 @@ impl Label {
/// ```
/// use ui::prelude::*;
///
- /// let my_label = Label::new("Hello, World!").single_line(true);
+ /// let my_label = Label::new("Hello, World!").single_line();
/// ```
pub fn single_line(mut self) -> Self {
self.single_line = true;