]> git.lizzy.rs Git - rust.git/commitdiff
Add missing urls in MutexGuard docs
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 23 Feb 2017 10:43:30 +0000 (11:43 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 23 Feb 2017 10:43:30 +0000 (11:43 +0100)
src/libstd/sync/mutex.rs

index 0d6ad5e38e98b0bcdec7b57e691a3675359e546f..97b84d59218ac290de902b451f7ccfbfb9ffea58 100644 (file)
@@ -133,11 +133,13 @@ unsafe impl<T: ?Sized + Send> Sync for Mutex<T> { }
 /// dropped (falls out of scope), the lock will be unlocked.
 ///
 /// The data protected by the mutex can be access through this guard via its
-/// `Deref` and `DerefMut` implementations.
+/// [`Deref`] and [`DerefMut`] implementations.
 ///
 /// This structure is created by the [`lock()`] and [`try_lock()`] methods on
 /// [`Mutex`].
 ///
+/// [`Deref`]: ../../std/ops/trait.Deref.html
+/// [`DerefMut`]: ../../std/ops/trait.DerefMut.html
 /// [`lock()`]: struct.Mutex.html#method.lock
 /// [`try_lock()`]: struct.Mutex.html#method.try_lock
 /// [`Mutex`]: struct.Mutex.html