diff options
author | 2023-06-08 20:09:10 -0700 | |
---|---|---|
committer | 2023-06-08 20:09:10 -0700 | |
commit | 9d69af10ccb4317f01bff32e2e1e58d498b2fc89 (patch) | |
tree | 0f4c2e723889649120934dd70f384144626ce5b3 /examples/loading_spinners | |
parent | 0148cfc82b0076a050e13d72a7c1b144a8c67033 (diff) | |
download | iced-9d69af10ccb4317f01bff32e2e1e58d498b2fc89.tar.gz iced-9d69af10ccb4317f01bff32e2e1e58d498b2fc89.tar.bz2 iced-9d69af10ccb4317f01bff32e2e1e58d498b2fc89.zip |
comment: fix typo
Diffstat (limited to 'examples/loading_spinners')
-rw-r--r-- | examples/loading_spinners/src/circular.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/loading_spinners/src/circular.rs b/examples/loading_spinners/src/circular.rs index 56ffa6f5..4e7bdc18 100644 --- a/examples/loading_spinners/src/circular.rs +++ b/examples/loading_spinners/src/circular.rs @@ -31,7 +31,7 @@ where style: <Theme as StyleSheet>::Style, easing: &'a Easing, cycle_duration: Duration, - rotaion_duration: Duration, + rotation_duration: Duration, } impl<'a, Theme> Circular<'a, Theme> @@ -46,7 +46,7 @@ where style: <Theme as StyleSheet>::Style::default(), easing: &easing::STANDARD, cycle_duration: Duration::from_millis(600), - rotaion_duration: Duration::from_secs(2), + rotation_duration: Duration::from_secs(2), } } @@ -83,7 +83,7 @@ where /// Sets the base rotation duration of this [`Circular`]. This is the duration that a full /// rotation would take if the cycle rotation were set to 0.0 (no expanding or contracting) pub fn rotation_duration(mut self, duration: Duration) -> Self { - self.rotaion_duration = duration; + self.rotation_duration = duration; self } } @@ -273,7 +273,7 @@ where if let Event::Window(window::Event::RedrawRequested(now)) = event { *state = state.timed_transition( self.cycle_duration, - self.rotaion_duration, + self.rotation_duration, now, ); |