Skip to content

Commit

Permalink
Rollup merge of #74637 - lzutao:str-primitive-links, r=jyn514
Browse files Browse the repository at this point in the history
Make str point to primitive page

Currently str in String page points to str module page.
  • Loading branch information
Manishearth committed Jul 23, 2020
2 parents 8909ac9 + d19b12d commit 9f2ef3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ use crate::vec::Vec;
///
/// # Examples
///
/// You can create a `String` from [a literal string][str] with [`String::from`]:
/// You can create a `String` from [a literal string][`str`] with [`String::from`]:
///
/// [`String::from`]: From::from
///
Expand Down Expand Up @@ -268,7 +268,8 @@ use crate::vec::Vec;
///
/// Here, there's no need to allocate more memory inside the loop.
///
/// [`&str`]: str
/// [`str`]: type@str
/// [`&str`]: type@str
/// [`Deref`]: core::ops::Deref
/// [`as_str()`]: String::as_str
#[derive(PartialOrd, Eq, Ord)]
Expand Down

0 comments on commit 9f2ef3f

Please sign in to comment.