Skip to content

Commit 7dba693

Browse files
committed
Use intra-doc links
1 parent dbc2ef2 commit 7dba693

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

library/core/src/borrow.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@
4040
/// provide a reference to related type `T`, it is often better to use
4141
/// [`AsRef<T>`] as more types can safely implement it.
4242
///
43-
/// [`AsRef<T>`]: ../../std/convert/trait.AsRef.html
44-
/// [`BorrowMut<T>`]: trait.BorrowMut.html
43+
/// [`AsRef<T>`]: crate::convert::AsRef
44+
/// [`BorrowMut<T>`]: BorrowMut
4545
/// [`Box<T>`]: ../../std/boxed/struct.Box.html
4646
/// [`Mutex<T>`]: ../../std/sync/struct.Mutex.html
4747
/// [`Rc<T>`]: ../../std/rc/struct.Rc.html
48-
/// [`str`]: ../../std/primitive.str.html
4948
/// [`String`]: ../../std/string/struct.String.html
50-
/// [`borrow`]: #tymethod.borrow
49+
/// [`borrow`]: Borrow::borrow
5150
///
5251
/// # Examples
5352
///
@@ -152,10 +151,9 @@
152151
/// If it wants to allow others access to the underlying `str`, it can do
153152
/// that via `AsRef<str>` which doesn’t carry any extra requirements.
154153
///
155-
/// [`Hash`]: ../../std/hash/trait.Hash.html
154+
/// [`Hash`]: crate::hash::Hash
156155
/// [`HashMap<K, V>`]: ../../std/collections/struct.HashMap.html
157156
/// [`String`]: ../../std/string/struct.String.html
158-
/// [`str`]: ../../std/primitive.str.html
159157
#[stable(feature = "rust1", since = "1.0.0")]
160158
pub trait Borrow<Borrowed: ?Sized> {
161159
/// Immutably borrows from an owned value.
@@ -187,7 +185,7 @@ pub trait Borrow<Borrowed: ?Sized> {
187185
/// an underlying type by providing a mutable reference. See [`Borrow<T>`]
188186
/// for more information on borrowing as another type.
189187
///
190-
/// [`Borrow<T>`]: trait.Borrow.html
188+
/// [`Borrow<T>`]: Borrow
191189
#[stable(feature = "rust1", since = "1.0.0")]
192190
pub trait BorrowMut<Borrowed: ?Sized>: Borrow<Borrowed> {
193191
/// Mutably borrows from an owned value.

0 commit comments

Comments
 (0)