about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-02-24 13:23:00 +0100
committerGitHub <noreply@github.com>2017-02-24 13:23:00 +0100
commit802a502ebd081a7c55cccf1dd34a127188d79323 (patch)
tree0df3a60d0467b73924ece07d878439bb1e8a0fa5 /src/libstd/sync
parent6f9e69a0fdf0bcf89281b6aefa14ecde2a111665 (diff)
parent088b727456dde36954ca0e68de3d783c40ffa426 (diff)
downloadrust-802a502ebd081a7c55cccf1dd34a127188d79323.tar.gz
rust-802a502ebd081a7c55cccf1dd34a127188d79323.zip
Rollup merge of #40052 - GuillaumeGomez:sunc_docs, r=frewsxcv
Add missing urls in MutexGuard docs

r? @frewsxcv
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mutex.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs
index 0d6ad5e38e9..97b84d59218 100644
--- a/src/libstd/sync/mutex.rs
+++ b/src/libstd/sync/mutex.rs
@@ -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