Skip to content

Commit

Permalink
ui: Fix doctest (zed-industries#12985)
Browse files Browse the repository at this point in the history
Fix the documentation tests failed when running `cargo test --workspace`

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <[email protected]>
  • Loading branch information
qianyan and maxdeviant authored Jun 14, 2024
1 parent 0ed5327 commit 8edfd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ui/src/components/label/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8edfd0a

Please sign in to comment.