Skip to content

Commit d4b2071

Browse files
committed
Resolved nits raised in review.
1 parent 8629fd3 commit d4b2071

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libstd/sync/condvar.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl Condvar {
190190
/// // Wait for the thread to start up.
191191
/// let &(ref lock, ref cvar) = &*pair;
192192
/// 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.
194194
/// while !*started {
195195
/// started = cvar.wait(started).unwrap();
196196
/// }
@@ -254,7 +254,7 @@ impl Condvar {
254254
///
255255
/// // Wait for the thread to start up.
256256
/// 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.
258258
/// let _guard = cvar.wait_until(lock.lock().unwrap(), |started| { *started }).unwrap();
259259
/// ```
260260
#[unstable(feature = "wait_until", issue = "47960")]
@@ -311,7 +311,7 @@ impl Condvar {
311311
/// // Wait for the thread to start up.
312312
/// let &(ref lock, ref cvar) = &*pair;
313313
/// 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.
315315
/// loop {
316316
/// let result = cvar.wait_timeout_ms(started, 10).unwrap();
317317
/// // 10 milliseconds have passed, or maybe the value changed!
@@ -384,7 +384,7 @@ impl Condvar {
384384
/// // wait for the thread to start up
385385
/// let &(ref lock, ref cvar) = &*pair;
386386
/// 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
388388
/// loop {
389389
/// let result = cvar.wait_timeout(started, Duration::from_millis(10)).unwrap();
390390
/// // 10 milliseconds have passed, or maybe the value changed!
@@ -518,7 +518,7 @@ impl Condvar {
518518
/// // Wait for the thread to start up.
519519
/// let &(ref lock, ref cvar) = &*pair;
520520
/// 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.
522522
/// while !*started {
523523
/// started = cvar.wait(started).unwrap();
524524
/// }
@@ -558,7 +558,7 @@ impl Condvar {
558558
/// // Wait for the thread to start up.
559559
/// let &(ref lock, ref cvar) = &*pair;
560560
/// 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.
562562
/// while !*started {
563563
/// started = cvar.wait(started).unwrap();
564564
/// }

0 commit comments

Comments
 (0)