This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 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;
268268///
269269/// Here, there's no need to allocate more memory inside the loop.
270270///
271- /// [`str`]: type @str
272- /// [`&str`]: type @str
271+ /// [`str`]: prim @str
272+ /// [`&str`]: prim @str
273273/// [`Deref`]: core::ops::Deref
274274/// [`as_str()`]: String::as_str
275275#[ derive( PartialOrd , Eq , Ord ) ]
@@ -296,7 +296,7 @@ pub struct String {
296296///
297297/// [`Utf8Error`]: core::str::Utf8Error
298298/// [`std::str`]: core::str
299- /// [`&str`]: str
299+ /// [`&str`]: prim@ str
300300/// [`utf8_error`]: Self::utf8_error
301301///
302302/// # Examples
@@ -472,7 +472,7 @@ impl String {
472472 ///
473473 /// [`from_utf8_unchecked`]: String::from_utf8_unchecked
474474 /// [`Vec<u8>`]: crate::vec::Vec
475- /// [`&str`]: str
475+ /// [`&str`]: prim@ str
476476 /// [`into_bytes`]: String::into_bytes
477477 #[ inline]
478478 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -1576,6 +1576,8 @@ impl String {
15761576 ///
15771577 /// This will drop any excess capacity.
15781578 ///
1579+ /// [`str`]: prim@str
1580+ ///
15791581 /// # Examples
15801582 ///
15811583 /// Basic usage:
@@ -1644,7 +1646,7 @@ impl FromUtf8Error {
16441646 /// on using it.
16451647 ///
16461648 /// [`std::str`]: core::str
1647- /// [`&str`]: str
1649+ /// [`&str`]: prim@ str
16481650 ///
16491651 /// # Examples
16501652 ///
You can’t perform that action at this time.
0 commit comments