mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
docs: fix some typos
This commit is contained in:
@@ -51,7 +51,7 @@ impl Timeout {
|
||||
/// specified by `at`.
|
||||
///
|
||||
/// This method is usable even of this instance of `Timeout` has "already
|
||||
/// fired". That is, if this future has resovled, calling this method means
|
||||
/// fired". That is, if this future has resolved, calling this method means
|
||||
/// that the future will still re-resolve at the specified instant.
|
||||
///
|
||||
/// If `at` is in the past then this future will immediately be resolved
|
||||
@@ -59,7 +59,7 @@ impl Timeout {
|
||||
///
|
||||
/// Note that if any task is currently blocked on this future then that task
|
||||
/// will be dropped. It is required to call `poll` again after this method
|
||||
/// has been called to ensure tha ta task is blocked on this future.
|
||||
/// has been called to ensure that a task is blocked on this future.
|
||||
pub fn reset(&mut self, at: Instant) {
|
||||
self.when = at;
|
||||
self.token.reset_timeout(self.when, &self.handle);
|
||||
|
||||
Reference in New Issue
Block a user