Skip to content

Commit 373432e

Browse files
committed
Convert from str -> prim@str for alloc
1 parent 556fd86 commit 373432e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

library/alloc/src/string.rs

+7-5
Original file line numberDiff line numberDiff 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
///

0 commit comments

Comments
 (0)