mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-02-07 11:36:14 +02:00
typo: removed duplicate "seconds" after 500ms (#1190)
Hi, this is a very tiny fix: `take 500ms seconds.` -> `take 500ms.`, but could you merge if it looks okay? Thank you!
This commit is contained in:
parent
4479023b44
commit
619f8be87b
@ -62,7 +62,7 @@ async fn main() {
|
|||||||
* In this example, we have a race between a cat and a dog.
|
* In this example, we have a race between a cat and a dog.
|
||||||
`first_animal_to_finish_race` listens to both channels and will pick whichever
|
`first_animal_to_finish_race` listens to both channels and will pick whichever
|
||||||
arrives first. Since the dog takes 50ms, it wins against the cat that
|
arrives first. Since the dog takes 50ms, it wins against the cat that
|
||||||
take 500ms seconds.
|
take 500ms.
|
||||||
|
|
||||||
* You can use `oneshot` channels in this example as the channels are supposed to
|
* You can use `oneshot` channels in this example as the channels are supposed to
|
||||||
receive only one `send`.
|
receive only one `send`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user