Skip to content

Commit 0a6c724

Browse files
Add missing link in string doc
1 parent a4d1149 commit 0a6c724

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)