Skip to content

Commit d19b12d

Browse files
committed
Prefer type@str
1 parent 47d0d2f commit d19b12d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/string.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use crate::vec::Vec;
6565
///
6666
/// # Examples
6767
///
68-
/// You can create a `String` from [a literal string][str] with [`String::from`]:
68+
/// You can create a `String` from [a literal string][`str`] with [`String::from`]:
6969
///
7070
/// [`String::from`]: From::from
7171
///
@@ -268,8 +268,8 @@ use crate::vec::Vec;
268268
///
269269
/// Here, there's no need to allocate more memory inside the loop.
270270
///
271-
/// [`str`]: ../../std/primitive.str.html
272-
/// [`&str`]: ../../std/primitive.str.html
271+
/// [`str`]: type@str
272+
/// [`&str`]: type@str
273273
/// [`Deref`]: core::ops::Deref
274274
/// [`as_str()`]: String::as_str
275275
#[derive(PartialOrd, Eq, Ord)]

0 commit comments

Comments
 (0)