File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,8 @@ use crate::vec::Vec;
268
268
///
269
269
/// Here, there's no need to allocate more memory inside the loop.
270
270
///
271
- /// [`str`]: type @str
272
- /// [`&str`]: type @str
271
+ /// [`str`]: prim @str
272
+ /// [`&str`]: prim @str
273
273
/// [`Deref`]: core::ops::Deref
274
274
/// [`as_str()`]: String::as_str
275
275
#[ derive( PartialOrd , Eq , Ord ) ]
@@ -296,7 +296,7 @@ pub struct String {
296
296
///
297
297
/// [`Utf8Error`]: core::str::Utf8Error
298
298
/// [`std::str`]: core::str
299
- /// [`&str`]: str
299
+ /// [`&str`]: prim@ str
300
300
/// [`utf8_error`]: Self::utf8_error
301
301
///
302
302
/// # Examples
@@ -472,7 +472,7 @@ impl String {
472
472
///
473
473
/// [`from_utf8_unchecked`]: String::from_utf8_unchecked
474
474
/// [`Vec<u8>`]: crate::vec::Vec
475
- /// [`&str`]: str
475
+ /// [`&str`]: prim@ str
476
476
/// [`into_bytes`]: String::into_bytes
477
477
#[ inline]
478
478
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1576,6 +1576,8 @@ impl String {
1576
1576
///
1577
1577
/// This will drop any excess capacity.
1578
1578
///
1579
+ /// [`str`]: prim@str
1580
+ ///
1579
1581
/// # Examples
1580
1582
///
1581
1583
/// Basic usage:
@@ -1644,7 +1646,7 @@ impl FromUtf8Error {
1644
1646
/// on using it.
1645
1647
///
1646
1648
/// [`std::str`]: core::str
1647
- /// [`&str`]: str
1649
+ /// [`&str`]: prim@ str
1648
1650
///
1649
1651
/// # Examples
1650
1652
///
You can’t perform that action at this time.
0 commit comments