summaryrefslogtreecommitdiffstats
path: root/examples/editor/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/editor/src')
-rw-r--r--examples/editor/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs
index c7d7eb26..d55f9bdf 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -150,7 +150,8 @@ impl Editor {
self.is_dirty.then_some(Message::SaveFile)
),
horizontal_space(),
- toggler(Some("Word Wrap"), self.word_wrap)
+ toggler(self.word_wrap)
+ .label("Word Wrap")
.on_toggle(Message::WordWrapToggled),
pick_list(
highlighter::Theme::ALL,