@@ -169,7 +169,7 @@ impl<T: ?Sized> RwLock<T> {
169169 /// Returns an RAII guard which will release this thread's shared access
170170 /// once it is dropped.
171171 ///
172- /// # Failure
172+ /// # Errors
173173 ///
174174 /// This function will return an error if the RwLock is poisoned. An RwLock
175175 /// is poisoned whenever a writer panics while holding an exclusive lock.
@@ -192,7 +192,7 @@ impl<T: ?Sized> RwLock<T> {
192192 /// This function does not provide any guarantees with respect to the ordering
193193 /// of whether contentious readers or writers will acquire the lock first.
194194 ///
195- /// # Failure
195+ /// # Errors
196196 ///
197197 /// This function will return an error if the RwLock is poisoned. An RwLock
198198 /// is poisoned whenever a writer panics while holding an exclusive lock. An
@@ -217,7 +217,7 @@ impl<T: ?Sized> RwLock<T> {
217217 /// Returns an RAII guard which will drop the write access of this rwlock
218218 /// when dropped.
219219 ///
220- /// # Failure
220+ /// # Errors
221221 ///
222222 /// This function will return an error if the RwLock is poisoned. An RwLock
223223 /// is poisoned whenever a writer panics while holding an exclusive lock.
@@ -240,7 +240,7 @@ impl<T: ?Sized> RwLock<T> {
240240 /// This function does not provide any guarantees with respect to the ordering
241241 /// of whether contentious readers or writers will acquire the lock first.
242242 ///
243- /// # Failure
243+ /// # Errors
244244 ///
245245 /// This function will return an error if the RwLock is poisoned. An RwLock
246246 /// is poisoned whenever a writer panics while holding an exclusive lock. An
@@ -269,7 +269,7 @@ impl<T: ?Sized> RwLock<T> {
269269
270270 /// Consumes this `RwLock`, returning the underlying data.
271271 ///
272- /// # Failure
272+ /// # Errors
273273 ///
274274 /// This function will return an error if the RwLock is poisoned. An RwLock
275275 /// is poisoned whenever a writer panics while holding an exclusive lock. An
@@ -301,7 +301,7 @@ impl<T: ?Sized> RwLock<T> {
301301 /// Since this call borrows the `RwLock` mutably, no actual locking needs to
302302 /// take place---the mutable borrow statically guarantees no locks exist.
303303 ///
304- /// # Failure
304+ /// # Errors
305305 ///
306306 /// This function will return an error if the RwLock is poisoned. An RwLock
307307 /// is poisoned whenever a writer panics while holding an exclusive lock. An
0 commit comments