summaryrefslogtreecommitdiffstats
path: root/examples/stopwatch.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-14 05:56:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-14 05:56:46 +0100
commitd6c3da21f7fe7a79bcfbc2a180dc111e42300a04 (patch)
treebbe8e02712824cd0fe22028bd3072fbfce104d62 /examples/stopwatch.rs
parent293314405f5b8d4003db5ef8f428e659ae36872d (diff)
downloadiced-d6c3da21f7fe7a79bcfbc2a180dc111e42300a04.tar.gz
iced-d6c3da21f7fe7a79bcfbc2a180dc111e42300a04.tar.bz2
iced-d6c3da21f7fe7a79bcfbc2a180dc111e42300a04.zip
Write docs for subscriptions and reorganize a bit
Diffstat (limited to 'examples/stopwatch.rs')
-rw-r--r--examples/stopwatch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stopwatch.rs b/examples/stopwatch.rs
index 0d52a091..7a7f0793 100644
--- a/examples/stopwatch.rs
+++ b/examples/stopwatch.rs
@@ -74,7 +74,7 @@ impl Application for Stopwatch {
Command::none()
}
- fn subscriptions(&self) -> Subscription<Message> {
+ fn subscription(&self) -> Subscription<Message> {
match self.state {
State::Idle => Subscription::none(),
State::Ticking { .. } => {