We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d0d2f commit d19b12dCopy full SHA for d19b12d
src/liballoc/string.rs
@@ -65,7 +65,7 @@ use crate::vec::Vec;
65
///
66
/// # Examples
67
68
-/// 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`]:
69
70
/// [`String::from`]: From::from
71
@@ -268,8 +268,8 @@ use crate::vec::Vec;
268
269
/// Here, there's no need to allocate more memory inside the loop.
270
271
-/// [`str`]: ../../std/primitive.str.html
272
-/// [`&str`]: ../../std/primitive.str.html
+/// [`str`]: type@str
+/// [`&str`]: type@str
273
/// [`Deref`]: core::ops::Deref
274
/// [`as_str()`]: String::as_str
275
#[derive(PartialOrd, Eq, Ord)]
0 commit comments