1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-31 11:01:46 +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:
Kanta Yamaoka (山岡幹太) 2023-09-10 15:13:59 +09:00 committed by GitHub
parent 4479023b44
commit 619f8be87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ async fn main() {
* 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
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
receive only one `send`.