diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-23 00:42:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-23 00:42:16 -0700 |
| commit | 9f2ef3f62d445a5871745ea02297644ca249a7b1 (patch) | |
| tree | b7e900bfe3315df443a4e5be21b17c70075cd907 /src | |
| parent | 8909ac97d52a8b099fd334d84db1073839e16b16 (diff) | |
| parent | d19b12df4157dc0a4220e7b1da023ddeeb6dd503 (diff) | |
| download | rust-9f2ef3f62d445a5871745ea02297644ca249a7b1.tar.gz rust-9f2ef3f62d445a5871745ea02297644ca249a7b1.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/liballoc/string.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 15f10df9a45..f41c8c5a559 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -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 /// @@ -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)] |
