about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2020-07-22 15:17:50 +0000
committerLzu Tao <taolzu@gmail.com>2020-07-23 02:37:17 +0000
commit47d0d2ff63f11f651e704b2d4d0471a6b2af4b7d (patch)
treef817e9363ff642bcc24ffab8898560daf881d5c0 /src/liballoc/string.rs
parent4a86573c6b5c8b1ba179487f06e5f69a6f37e895 (diff)
downloadrust-47d0d2ff63f11f651e704b2d4d0471a6b2af4b7d.tar.gz
rust-47d0d2ff63f11f651e704b2d4d0471a6b2af4b7d.zip
Make str point to primitive page
Diffstat (limited to 'src/liballoc/string.rs')
-rw-r--r--src/liballoc/string.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 15f10df9a45..a7123e0dd7d 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -268,7 +268,8 @@ use crate::vec::Vec;
 ///
 /// Here, there's no need to allocate more memory inside the loop.
 ///
-/// [`&str`]: str
+/// [`str`]: ../../std/primitive.str.html
+/// [`&str`]: ../../std/primitive.str.html
 /// [`Deref`]: core::ops::Deref
 /// [`as_str()`]: String::as_str
 #[derive(PartialOrd, Eq, Ord)]