Skip to content

Commit 48f2d8b

Browse files
committed
Fix doclinks
1 parent 18bb1a9 commit 48f2d8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/string/string.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ use crate::vec::Vec;
3535

3636
/// A UTF-8–encoded, growable string, with allocator support.
3737
///
38-
/// The documentation for this type is located at [`alloc::string::String`].
38+
/// The documentation for this type is located at [`alloc::string::String`][crate::string::String].
3939
///
4040
/// This is due to type parameter defaults not affecting inference.
41-
/// Otherwise, [`alloc::string::String`] would be the canonical location of `String`,
41+
/// Otherwise, `alloc::string::String` would be the canonical location of `String`,
4242
/// instead of a type alias.
4343
#[cfg_attr(not(test), lang = "String")]
4444
#[stable(feature = "rust1", since = "1.0.0")]
@@ -48,7 +48,7 @@ pub struct String<#[unstable(feature = "allocator_api", issue = "32838")] A: All
4848

4949
/// A possible error value when converting a `String` from a UTF-8 byte vector.
5050
///
51-
/// This type is the error type for the [`from_utf8_in`] method on [`String`]. It
51+
/// This type is the error type for the [`from_utf8`] method on [`String`]. It
5252
/// is designed in such a way to carefully avoid reallocations: the
5353
/// [`into_bytes`] method will give back the byte vector that was used in the
5454
/// conversion attempt.

0 commit comments

Comments
 (0)