about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Majeri <gabriel.majeri6@gmail.com>2018-09-27 22:12:09 +0300
committerGabriel Majeri <gabriel.majeri6@gmail.com>2018-09-28 12:03:33 +0300
commitbcec6bb525032b48d8d1793854f61892c21fe8af (patch)
tree30f253009d0bd180fd1a49cf1272bc64a0c7861a
parentf3fdbbfae8646be30d7a19db059b9cdc42fadbc4 (diff)
downloadrust-bcec6bb525032b48d8d1793854f61892c21fe8af.tar.gz
rust-bcec6bb525032b48d8d1793854f61892c21fe8af.zip
Fix broken links
-rw-r--r--src/libstd/sync/mod.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libstd/sync/mod.rs b/src/libstd/sync/mod.rs
index bdb6e49aabc..5ba569bf7ce 100644
--- a/src/libstd/sync/mod.rs
+++ b/src/libstd/sync/mod.rs
@@ -98,11 +98,11 @@
 //!     location doesn't lead to undefined behavior.
 //!
 //! [prefetching]: https://en.wikipedia.org/wiki/Cache_prefetching
-//! [compiler fences]: atomic::compiler_fence
+//! [compiler fences]: crate::sync::atomic::compiler_fence
 //! [out-of-order]: https://en.wikipedia.org/wiki/Out-of-order_execution
 //! [superscalar]: https://en.wikipedia.org/wiki/Superscalar_processor
-//! [memory fences]: atomic::fence
-//! [atomics operations]: atomic
+//! [memory fences]: crate::sync::atomic::fence
+//! [atomic operations]: crate::sync::atomic
 //!
 //! ## Higher-level synchronization objects
 //!
@@ -120,7 +120,7 @@
 //! Higher-level synchronization mechanisms are usually heavy-weight.
 //! While most atomic operations can execute instantaneously, acquiring a
 //! [`Mutex`] can involve blocking until another thread releases it.
-//! For [`RwLock`], while! any number of readers may acquire it without
+//! For [`RwLock`], while any number of readers may acquire it without
 //! blocking, each writer will have exclusive access.
 //!
 //! On the other hand, communication over [channels] can provide a fairly
@@ -130,7 +130,9 @@
 //! The more synchronization exists between CPUs, the smaller the performance
 //! gains from multithreading will be.
 //!
-//! [channels]: mpsc
+//! [`Mutex`]: crate::sync::Mutex
+//! [`RwLock`]: crate::sync::RwLock
+//! [channels]: crate::sync::mpsc
 
 #![stable(feature = "rust1", since = "1.0.0")]