@@ -153,7 +153,7 @@ impl<F: Fn() + Send> FutureCallback for F {
153
153
154
154
pub ( crate ) struct FutureState {
155
155
// When we're tracking whether a callback counts as having woken the user's code, we check the
156
- // first bool - set to false if we're just calling a Waker, and true if we're calilng an actual
156
+ // first bool - set to false if we're just calling a Waker, and true if we're calling an actual
157
157
// user-provided function.
158
158
callbacks : Vec < ( bool , Box < dyn FutureCallback > ) > ,
159
159
complete : bool ,
@@ -440,7 +440,7 @@ mod tests {
440
440
441
441
#[ test]
442
442
fn test_dropped_future_doesnt_count ( ) {
443
- // Tests that if a Future gets drop'd before it is poll()ed Ready it doesn't count as
443
+ // Tests that if a Future gets drop'd before it is poll()ed ` Ready` it doesn't count as
444
444
// having been woken, leaving the notify-required flag set.
445
445
let notifier = Notifier :: new ( ) ;
446
446
notifier. notify ( ) ;
@@ -450,7 +450,7 @@ mod tests {
450
450
assert ! ( notifier. wait_timeout( Duration :: from_secs( 1 ) ) ) ;
451
451
assert ! ( !notifier. wait_timeout( Duration :: from_secs( 1 ) ) ) ;
452
452
453
- // Even if we poll'd once but didn't onserve a `Ready`, we should be notify-required.
453
+ // Even if we poll'd once but didn't observe a `Ready`, we should be notify-required.
454
454
let mut future = notifier. get_future ( ) ;
455
455
let ( woken, waker) = create_waker ( ) ;
456
456
assert_eq ! ( Pin :: new( & mut future) . poll( & mut Context :: from_waker( & waker) ) , Poll :: Pending ) ;
0 commit comments