summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-13 18:19:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-13 18:19:05 +0100
commit507820a8438cec25074f92b72e118e0931fa7f9f (patch)
tree7e1ccc31dc2b9df6696b4d6165650aa52cffb16f
parentb9c8c7b08d2778b6717c2df0731605aea35dc0a2 (diff)
downloadiced-507820a8438cec25074f92b72e118e0931fa7f9f.tar.gz
iced-507820a8438cec25074f92b72e118e0931fa7f9f.tar.bz2
iced-507820a8438cec25074f92b72e118e0931fa7f9f.zip
Fix grammar of `TODO` comment in `application` modules
-rw-r--r--glutin/src/application.rs5
-rw-r--r--winit/src/application.rs5
2 files changed, 4 insertions, 6 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs
index da0af5c0..b7bf21c3 100644
--- a/glutin/src/application.rs
+++ b/glutin/src/application.rs
@@ -340,9 +340,8 @@ async fn run_instance<A, E, C>(
// TODO: Avoid redrawing all the time by forcing widgets to
// request redraws on state changes
//
- // Then, we can use the `interface_state` here to decide whether
- // if a redraw is needed right away, or simply wait until a
- // specific time.
+ // Then, we can use the `interface_state` here to decide if a redraw
+ // is needed right away, or simply wait until a specific time.
let redraw_event = Event::Window(
crate::window::Event::RedrawRequested(Instant::now()),
);
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 88179391..77ca4b31 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -401,9 +401,8 @@ async fn run_instance<A, E, C>(
// TODO: Avoid redrawing all the time by forcing widgets to
// request redraws on state changes
//
- // Then, we can use the `interface_state` here to decide whether
- // if a redraw is needed right away, or simply wait until a
- // specific time.
+ // Then, we can use the `interface_state` here to decide if a redraw
+ // is needed right away, or simply wait until a specific time.
let redraw_event = Event::Window(
crate::window::Event::RedrawRequested(Instant::now()),
);