Fix the example in document for WaitTimeoutResult::timed_out#110056
Fix the example in document for WaitTimeoutResult::timed_out#110056bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @thomcc (rustbot has picked a reviewer for you, use r? to override) |
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
fe4d622 to
523eca1
Compare
|
r? libs |
|
r? libs |
library/std/src/sync/condvar.rs
Outdated
There was a problem hiding this comment.
Where you're going seems like a good direction but currently it ends up at... "and then notify"... notify what?
library/std/src/sync/condvar.rs
Outdated
There was a problem hiding this comment.
"with a timeout with"... This could be constructed more like "with a 10 millisecond timeout".
And what is the thread "leaving"? The loop, right? But it could be clearer.
|
@rustbot author |
78fee78 to
5d11c20
Compare
|
@rustbot ready |
workingjubilee
left a comment
There was a problem hiding this comment.
Much better! Just a little bit more?
|
Side thought: It'd be cute if this example showed that the condvar's timeout and notification status can differ, but that's not a requirement. This still addresses the concern in question. |
a1f5939 to
d67d989
Compare
|
@bors r+ rollup |
…rkingjubilee Fix the example in document for WaitTimeoutResult::timed_out Fixes rust-lang#110045
…rkingjubilee Fix the example in document for WaitTimeoutResult::timed_out Fixes rust-lang#110045
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110056 (Fix the example in document for WaitTimeoutResult::timed_out) - rust-lang#112655 (Mark `map_or` as `#[must_use]`) - rust-lang#114018 (Make `--error-format human-annotate-rs` handle multiple files) - rust-lang#114068 (inline format!() args up to and including rustc_middle (2)) - rust-lang#114223 (Documentation: Fix Stilted Language in Vec->Indexing) - rust-lang#114227 (Add tidy check for stray rustfix files) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #110045