time: fix typo in tokio-time document (#4304)

This commit is contained in:
Naruto210 2021-12-07 22:49:45 +08:00 committed by GitHub
parent f73ed1fdba
commit 60ba634d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ pub fn interval_at(start: Instant, period: Duration) -> Interval {
///
/// #[tokio::main]
/// async fn main() {
/// // ticks every 2 seconds
/// // ticks every 2 milliseconds
/// let mut interval = time::interval(Duration::from_millis(2));
/// for _ in 0..5 {
/// interval.tick().await;