@@ -153,7 +153,7 @@ impl<F: Fn() + Send> FutureCallback for F {
153153
154154pub ( crate ) struct FutureState {
155155 // 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
157157 // user-provided function.
158158 callbacks : Vec < ( bool , Box < dyn FutureCallback > ) > ,
159159 complete : bool ,
@@ -440,7 +440,7 @@ mod tests {
440440
441441 #[ test]
442442 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
444444 // having been woken, leaving the notify-required flag set.
445445 let notifier = Notifier :: new ( ) ;
446446 notifier. notify ( ) ;
@@ -450,7 +450,7 @@ mod tests {
450450 assert ! ( notifier. wait_timeout( Duration :: from_secs( 1 ) ) ) ;
451451 assert ! ( !notifier. wait_timeout( Duration :: from_secs( 1 ) ) ) ;
452452
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.
454454 let mut future = notifier. get_future ( ) ;
455455 let ( woken, waker) = create_waker ( ) ;
456456 assert_eq ! ( Pin :: new( & mut future) . poll( & mut Context :: from_waker( & waker) ) , Poll :: Pending ) ;
0 commit comments