Skip to content

Commit 5c64008

Browse files
committed
Rollup merge of #44090 - GuillaumeGomez:str-doc, r=steveklabnik
Add missing link in string doc r? @rust-lang/docs
2 parents 4c845f8 + 0a6c724 commit 5c64008

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/liballoc/string.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ use boxed::Box;
8282
///
8383
/// # Examples
8484
///
85-
/// You can create a `String` from a literal string with `String::from`:
85+
/// You can create a `String` from a literal string with [`String::from`]:
8686
///
8787
/// ```
8888
/// let hello = String::from("Hello, world!");
@@ -98,6 +98,7 @@ use boxed::Box;
9898
/// hello.push_str("orld!");
9999
/// ```
100100
///
101+
/// [`String::from`]: #method.from
101102
/// [`char`]: ../../std/primitive.char.html
102103
/// [`push`]: #method.push
103104
/// [`push_str`]: #method.push_str

0 commit comments

Comments
 (0)