@@ -190,7 +190,7 @@ impl Condvar {
190
190
/// // Wait for the thread to start up.
191
191
/// let &(ref lock, ref cvar) = &*pair;
192
192
/// let mut started = lock.lock().unwrap();
193
- /// // As long as the value inside the `Mutex` is false, we wait.
193
+ /// // As long as the value inside the `Mutex<bool> ` is ` false` , we wait.
194
194
/// while !*started {
195
195
/// started = cvar.wait(started).unwrap();
196
196
/// }
@@ -254,7 +254,7 @@ impl Condvar {
254
254
///
255
255
/// // Wait for the thread to start up.
256
256
/// let &(ref lock, ref cvar) = &*pair;
257
- /// // As long as the value inside the `Mutex` is false, we wait.
257
+ /// // As long as the value inside the `Mutex<bool> ` is ` false` , we wait.
258
258
/// let _guard = cvar.wait_until(lock.lock().unwrap(), |started| { *started }).unwrap();
259
259
/// ```
260
260
#[ unstable( feature = "wait_until" , issue = "47960" ) ]
@@ -311,7 +311,7 @@ impl Condvar {
311
311
/// // Wait for the thread to start up.
312
312
/// let &(ref lock, ref cvar) = &*pair;
313
313
/// let mut started = lock.lock().unwrap();
314
- /// // As long as the value inside the `Mutex` is false, we wait.
314
+ /// // As long as the value inside the `Mutex<bool> ` is ` false` , we wait.
315
315
/// loop {
316
316
/// let result = cvar.wait_timeout_ms(started, 10).unwrap();
317
317
/// // 10 milliseconds have passed, or maybe the value changed!
@@ -384,7 +384,7 @@ impl Condvar {
384
384
/// // wait for the thread to start up
385
385
/// let &(ref lock, ref cvar) = &*pair;
386
386
/// let mut started = lock.lock().unwrap();
387
- /// // as long as the value inside the `Mutex` is false, we wait
387
+ /// // as long as the value inside the `Mutex<bool> ` is ` false` , we wait
388
388
/// loop {
389
389
/// let result = cvar.wait_timeout(started, Duration::from_millis(10)).unwrap();
390
390
/// // 10 milliseconds have passed, or maybe the value changed!
@@ -518,7 +518,7 @@ impl Condvar {
518
518
/// // Wait for the thread to start up.
519
519
/// let &(ref lock, ref cvar) = &*pair;
520
520
/// let mut started = lock.lock().unwrap();
521
- /// // As long as the value inside the `Mutex` is false, we wait.
521
+ /// // As long as the value inside the `Mutex<bool> ` is ` false` , we wait.
522
522
/// while !*started {
523
523
/// started = cvar.wait(started).unwrap();
524
524
/// }
@@ -558,7 +558,7 @@ impl Condvar {
558
558
/// // Wait for the thread to start up.
559
559
/// let &(ref lock, ref cvar) = &*pair;
560
560
/// let mut started = lock.lock().unwrap();
561
- /// // As long as the value inside the `Mutex` is false, we wait.
561
+ /// // As long as the value inside the `Mutex<bool> ` is ` false` , we wait.
562
562
/// while !*started {
563
563
/// started = cvar.wait(started).unwrap();
564
564
/// }
0 commit comments