summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/rwlock.rs
diff options
context:
space:
mode:
authorxliiv <tymoteusz.jankowski@gmail.com>2020-04-12 19:25:55 +0200
committerGitHub <noreply@github.com>2020-04-12 10:25:55 -0700
commitf39c15334e74b07a44efaa0f7201262e17e4f062 (patch)
treec13b2949b0a82d4443d83b724d7f99bae13a035e /tokio/src/sync/rwlock.rs
parent060d22bd10ac66d91b70522138816c9bd05d5ead (diff)
docs: replace some html links with rustdoc paths (#2381)
Included changes - all simple references like `<type>.<name>.html` for these types - enum - fn - struct - trait - type - simple references for methods, like struct.DelayQueue.html#method.poll Refs: #1473
Diffstat (limited to 'tokio/src/sync/rwlock.rs')
-rw-r--r--tokio/src/sync/rwlock.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tokio/src/sync/rwlock.rs b/tokio/src/sync/rwlock.rs
index 0f7991a5..68cf710e 100644
--- a/tokio/src/sync/rwlock.rs
+++ b/tokio/src/sync/rwlock.rs
@@ -62,10 +62,10 @@ const MAX_READS: usize = 10;
/// }
/// ```
///
-/// [`Mutex`]: struct.Mutex.html
-/// [`RwLock`]: struct.RwLock.html
-/// [`RwLockReadGuard`]: struct.RwLockReadGuard.html
-/// [`RwLockWriteGuard`]: struct.RwLockWriteGuard.html
+/// [`Mutex`]: struct@super::Mutex
+/// [`RwLock`]: struct@RwLock
+/// [`RwLockReadGuard`]: struct@RwLockReadGuard
+/// [`RwLockWriteGuard`]: struct@RwLockWriteGuard
/// [`Send`]: https://doc.rust-lang.org/std/marker/trait.Send.html
/// [_write-preferring_]: https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Priority_policies
#[derive(Debug)]
@@ -83,7 +83,7 @@ pub struct RwLock<T> {
/// This structure is created by the [`read`] method on
/// [`RwLock`].
///
-/// [`read`]: struct.RwLock.html#method.read
+/// [`read`]: method@RwLock::read
#[derive(Debug)]
pub struct RwLockReadGuard<'a, T> {
permit: ReleasingPermit<'a, T>,
@@ -96,8 +96,8 @@ pub struct RwLockReadGuard<'a, T> {
/// This structure is created by the [`write`] and method
/// on [`RwLock`].
///
-/// [`write`]: struct.RwLock.html#method.write
-/// [`RwLock`]: struct.RwLock.html
+/// [`write`]: method@RwLock::write
+/// [`RwLock`]: struct@RwLock
#[derive(Debug)]
pub struct RwLockWriteGuard<'a, T> {
permit: ReleasingPermit<'a, T>,