aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 94ff5e9..441df27 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,7 +12,7 @@
//! #[derive(Default)]
//! struct State {
//! content: text_editor::Content,
-//! theme: Theme,
+//! theme: Option<Theme>,
//! }
//!
//! #[derive(Debug, Clone)]
@@ -34,7 +34,7 @@
//! )
//! .push(pick_list(
//! Theme::ALL,
-//! Some(state.theme),
+//! state.theme.clone(),
//! Message::ChangeTheme,
//! ))
//! .into()
@@ -47,7 +47,7 @@
//! }
//!
//! Message::ChangeTheme(theme) => {
-//! state.theme = theme;
+//! state.theme = Some(theme);
//! }
//! }
//! }