mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
time: fix typo in tokio-time document (#4304)
This commit is contained in:
parent
f73ed1fdba
commit
60ba634d60
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user