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

This commit is contained in:
Naruto210
2021-12-07 15:49:45 +01:00
committed by GitHub
parent f73ed1fdba
commit 60ba634d60
+1 -1
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;