mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 13:21:12 +00:00
rollup merge of #23893: frewsxcv/patch-6
This commit is contained in:
commit
acdb0f9c78
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue