Skip to content

Commit 9f2ef3f

Browse files
authored
Rollup merge of #74637 - lzutao:str-primitive-links, r=jyn514
Make str point to primitive page Currently str in String page points to str module page.
2 parents 8909ac9 + d19b12d commit 9f2ef3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/liballoc/string.rs

+3-2
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,7 +268,8 @@ use crate::vec::Vec;
268268
///
269269
/// Here, there's no need to allocate more memory inside the loop.
270270
///
271-
/// [`&str`]: str
271+
/// [`str`]: type@str
272+
/// [`&str`]: type@str
272273
/// [`Deref`]: core::ops::Deref
273274
/// [`as_str()`]: String::as_str
274275
#[derive(PartialOrd, Eq, Ord)]

0 commit comments

Comments
 (0)