mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 18:15:01 +00:00
rollup merge of #23893: frewsxcv/patch-6
This commit is contained in:
commit
acdb0f9c78
@ -114,7 +114,7 @@
|
||||
//! ```
|
||||
//!
|
||||
//! Reading from a channel with a timeout requires to use a Timer together
|
||||
//! with the channel. You can use the select! macro to select either and
|
||||
//! with the channel. You can use the `select!` macro to select either and
|
||||
//! handle the timeout case. This first example will break out of the loop
|
||||
//! after 10 seconds no matter what:
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user