From 8edfd0a9633c38cc6755949c554976274d92387d Mon Sep 17 00:00:00 2001 From: Yan Qian Date: Fri, 14 Jun 2024 08:32:41 +0800 Subject: [PATCH] ui: Fix doctest (#12985) Fix the documentation tests failed when running `cargo test --workspace` Release Notes: - N/A --------- Co-authored-by: Marshall Bowers --- crates/ui/src/components/label/label.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/components/label/label.rs b/crates/ui/src/components/label/label.rs index 5560e9fea8..70ccb65446 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;