]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #74637 - lzutao:str-primitive-links, r=jyn514
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 23 Jul 2020 07:42:16 +0000 (00:42 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 07:42:16 +0000 (00:42 -0700)
Make str point to primitive page

Currently str in String page points to str module page.

src/liballoc/string.rs

index 15f10df9a45cc097b6fe5c2160d2efa6814ee898..f41c8c5a5591054c6c89d6ecc1e6108c94acd7c1 100644 (file)
@@ -65,7 +65,7 @@
 ///
 /// # 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
 ///
 ///
 /// 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)]