From 32edf1d7a81a0db65282374daf846727c8e2a8fd Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Fri, 6 May 2016 11:18:05 +0200 Subject: Fix Typo in Barrier::wait documentation This should be `have` instead of `has`. --- src/libstd/sync/barrier.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/barrier.rs b/src/libstd/sync/barrier.rs index b543240c15a..b1267acdee6 100644 --- a/src/libstd/sync/barrier.rs +++ b/src/libstd/sync/barrier.rs @@ -71,7 +71,7 @@ impl Barrier { } } - /// Blocks the current thread until all threads has rendezvoused here. + /// Blocks the current thread until all threads have rendezvoused here. /// /// Barriers are re-usable after all threads have rendezvoused once, and can /// be used continuously. -- cgit 1.4.1-3-g733a5 From 40025e8cd3214488444d34b2074e68231c8f1fc2 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 6 May 2016 09:07:05 -0400 Subject: Indicate struct names are code-like in doc-comment. --- src/libstd/sync/rwlock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 09b1b0a939d..cfb8ee16cb0 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -38,8 +38,8 @@ use sys_common::rwlock as sys; /// /// # Poisoning /// -/// RwLocks, like Mutexes, will become poisoned on panics. Note, however, that -/// an RwLock may only be poisoned if a panic occurs while it is locked +/// An `RwLock`, like `Mutex`, will become poisoned on a panic. Note, however, +/// that an `RwLock` may only be poisoned if a panic occurs while it is locked /// exclusively (write mode). If a panic occurs in any reader, then the lock /// will not be poisoned. /// -- cgit 1.4.1-3-g733a5