diff options
author | 2019-12-14 00:32:05 +0100 | |
---|---|---|
committer | 2019-12-14 00:32:05 +0100 | |
commit | f0381a7fb305a371208df62d339540ce3d48f9da (patch) | |
tree | 59a855a7ba5c3d65a98929d4d3a7e00211218839 /examples/timer.rs | |
parent | ffa46898d983fc15ce6051a427622c058ce4e151 (diff) | |
download | iced-f0381a7fb305a371208df62d339540ce3d48f9da.tar.gz iced-f0381a7fb305a371208df62d339540ce3d48f9da.tar.bz2 iced-f0381a7fb305a371208df62d339540ce3d48f9da.zip |
Use `surf` in `pokedex` example
Diffstat (limited to 'examples/timer.rs')
-rw-r--r-- | examples/timer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/timer.rs b/examples/timer.rs index b64b3ef5..367c5b2b 100644 --- a/examples/timer.rs +++ b/examples/timer.rs @@ -92,7 +92,7 @@ impl Application for Timer { let duration = Text::new(format!( "{:0>2}:{:0>2}:{:0>2}.{:0>2}", seconds / HOUR, - seconds / MINUTE, + (seconds % HOUR) / MINUTE, seconds % MINUTE, self.duration.subsec_millis() / 10, )) |