Skip to content

Commit

Permalink
Update Label::truncate example string in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
YgorSouza committed Jun 15, 2024
1 parent cf8842f commit 10d3127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui_demo_lib/src/demo/misc_demo_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ fn label_ui(ui: &mut egui::Ui) {

ui.add(
egui::Label::new(
"Labels containing long text can be set to elide the text that doesn't fit on a single line using `Label::elide`. When hovered, the label will show the full text.",
"Labels containing long text can be set to elide the text that doesn't fit on a single line using `Label::truncate`. When hovered, the label will show the full text.",
)
.truncate(),
);
Expand Down

0 comments on commit 10d3127

Please sign in to comment.