diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-07-23 02:42:37 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-07-23 02:42:37 +0000 |
| commit | d19b12df4157dc0a4220e7b1da023ddeeb6dd503 (patch) | |
| tree | e179dfe589ebe55f36a179ce2b37dd8a742208d9 /src/liballoc/string.rs | |
| parent | 47d0d2ff63f11f651e704b2d4d0471a6b2af4b7d (diff) | |
| download | rust-d19b12df4157dc0a4220e7b1da023ddeeb6dd503.tar.gz rust-d19b12df4157dc0a4220e7b1da023ddeeb6dd503.zip | |
Prefer type@str
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index a7123e0dd7d..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,8 +268,8 @@ use crate::vec::Vec; /// /// Here, there's no need to allocate more memory inside the loop. /// -/// [`str`]: ../../std/primitive.str.html -/// [`&str`]: ../../std/primitive.str.html +/// [`str`]: type@str +/// [`&str`]: type@str /// [`Deref`]: core::ops::Deref /// [`as_str()`]: String::as_str #[derive(PartialOrd, Eq, Ord)] |
