diff options
| author | Denis Vasilik <contact@denisvasilik.com> | 2020-08-09 23:06:44 +0200 |
|---|---|---|
| committer | Denis Vasilik <contact@denisvasilik.com> | 2020-08-09 23:06:44 +0200 |
| commit | 7dba693f0e1197098ff10ac8812e1681cc79297e (patch) | |
| tree | b9e06ef6dd64dee4a4376b68635d54794fd8248c | |
| parent | dbc2ef25fb5e15445de38f19ba75547a6cf35cae (diff) | |
Use intra-doc links
| -rw-r--r-- | library/core/src/borrow.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/library/core/src/borrow.rs b/library/core/src/borrow.rs index 3e533255bec..8d52fb2ad8f 100644 --- a/library/core/src/borrow.rs +++ b/library/core/src/borrow.rs @@ -40,14 +40,13 @@ /// provide a reference to related type `T`, it is often better to use /// [`AsRef<T>`] as more types can safely implement it. /// -/// [`AsRef<T>`]: ../../std/convert/trait.AsRef.html -/// [`BorrowMut<T>`]: trait.BorrowMut.html +/// [`AsRef<T>`]: crate::convert::AsRef +/// [`BorrowMut<T>`]: BorrowMut /// [`Box<T>`]: ../../std/boxed/struct.Box.html /// [`Mutex<T>`]: ../../std/sync/struct.Mutex.html /// [`Rc<T>`]: ../../std/rc/struct.Rc.html -/// [`str`]: ../../std/primitive.str.html /// [`String`]: ../../std/string/struct.String.html -/// [`borrow`]: #tymethod.borrow +/// [`borrow`]: Borrow::borrow /// /// # Examples /// @@ -152,10 +151,9 @@ /// If it wants to allow others access to the underlying `str`, it can do /// that via `AsRef<str>` which doesn’t carry any extra requirements. /// -/// [`Hash`]: ../../std/hash/trait.Hash.html +/// [`Hash`]: crate::hash::Hash /// [`HashMap<K, V>`]: ../../std/collections/struct.HashMap.html /// [`String`]: ../../std/string/struct.String.html -/// [`str`]: ../../std/primitive.str.html #[stable(feature = "rust1", since = "1.0.0")] pub trait Borrow<Borrowed: ?Sized> { /// Immutably borrows from an owned value. @@ -187,7 +185,7 @@ pub trait Borrow<Borrowed: ?Sized> { /// an underlying type by providing a mutable reference. See [`Borrow<T>`] /// for more information on borrowing as another type. /// -/// [`Borrow<T>`]: trait.Borrow.html +/// [`Borrow<T>`]: Borrow #[stable(feature = "rust1", since = "1.0.0")] pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> { /// Mutably borrows from an owned value. |
