diff options
author | fbucek <fbucek@atlas.cz> | 2019-12-21 18:31:02 +0100 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-12-21 09:31:02 -0800 |
commit | f309b295bb0bdee5862a0ab8359a5f0622a588b9 (patch) | |
tree | 415c56089dfe9f787a36cd109940b17b3414abbf /tokio/src/time/interval.rs | |
parent | b1266a48c4daea9a14cd7a77bb8c8712ebf1c012 (diff) |
doc: fix misleading comment in interval.rs
Diffstat (limited to 'tokio/src/time/interval.rs')
-rw-r--r-- | tokio/src/time/interval.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/time/interval.rs b/tokio/src/time/interval.rs index b1c3ee55..090e2d1f 100644 --- a/tokio/src/time/interval.rs +++ b/tokio/src/time/interval.rs @@ -30,7 +30,7 @@ use std::task::{Context, Poll}; /// interval.tick().await; /// interval.tick().await; /// -/// // approximately 30ms have elapsed. +/// // approximately 20ms have elapsed. /// } /// ``` pub fn interval(period: Duration) -> Interval { @@ -120,7 +120,7 @@ impl Interval { /// interval.tick().await; /// interval.tick().await; /// - /// // approximately 30ms have elapsed. + /// // approximately 20ms have elapsed. /// } /// ``` #[allow(clippy::should_implement_trait)] // TODO: rename (tokio-rs/tokio#1261) |