mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +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]
|
/// #[tokio::main]
|
||||||
/// async fn main() {
|
/// async fn main() {
|
||||||
/// // ticks every 2 seconds
|
/// // ticks every 2 milliseconds
|
||||||
/// let mut interval = time::interval(Duration::from_millis(2));
|
/// let mut interval = time::interval(Duration::from_millis(2));
|
||||||
/// for _ in 0..5 {
|
/// for _ in 0..5 {
|
||||||
/// interval.tick().await;
|
/// interval.tick().await;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user