|
40 | 40 | /// provide a reference to related type `T`, it is often better to use
|
41 | 41 | /// [`AsRef<T>`] as more types can safely implement it.
|
42 | 42 | ///
|
43 |
| -/// [`AsRef<T>`]: ../../std/convert/trait.AsRef.html |
44 |
| -/// [`BorrowMut<T>`]: trait.BorrowMut.html |
| 43 | +/// [`BorrowMut<T>`]: BorrowMut |
45 | 44 | /// [`Box<T>`]: ../../std/boxed/struct.Box.html
|
46 | 45 | /// [`Mutex<T>`]: ../../std/sync/struct.Mutex.html
|
47 | 46 | /// [`Rc<T>`]: ../../std/rc/struct.Rc.html
|
48 |
| -/// [`str`]: ../../std/primitive.str.html |
49 | 47 | /// [`String`]: ../../std/string/struct.String.html
|
50 |
| -/// [`borrow`]: #tymethod.borrow |
| 48 | +/// [`borrow`]: Borrow::borrow |
51 | 49 | ///
|
52 | 50 | /// # Examples
|
53 | 51 | ///
|
|
152 | 150 | /// If it wants to allow others access to the underlying `str`, it can do
|
153 | 151 | /// that via `AsRef<str>` which doesn’t carry any extra requirements.
|
154 | 152 | ///
|
155 |
| -/// [`Hash`]: ../../std/hash/trait.Hash.html |
| 153 | +/// [`Hash`]: crate::hash::Hash |
156 | 154 | /// [`HashMap<K, V>`]: ../../std/collections/struct.HashMap.html
|
157 | 155 | /// [`String`]: ../../std/string/struct.String.html
|
158 |
| -/// [`str`]: ../../std/primitive.str.html |
159 | 156 | #[stable(feature = "rust1", since = "1.0.0")]
|
160 | 157 | pub trait Borrow<Borrowed: ?Sized> {
|
161 | 158 | /// Immutably borrows from an owned value.
|
@@ -187,7 +184,7 @@ pub trait Borrow<Borrowed: ?Sized> {
|
187 | 184 | /// an underlying type by providing a mutable reference. See [`Borrow<T>`]
|
188 | 185 | /// for more information on borrowing as another type.
|
189 | 186 | ///
|
190 |
| -/// [`Borrow<T>`]: trait.Borrow.html |
| 187 | +/// [`Borrow<T>`]: Borrow |
191 | 188 | #[stable(feature = "rust1", since = "1.0.0")]
|
192 | 189 | pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> {
|
193 | 190 | /// Mutably borrows from an owned value.
|
|
0 commit comments