diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-25 23:09:00 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-25 23:09:00 +0200 |
| commit | 0a6c724ddedf10e60b6fff76a9347cabf1807c04 (patch) | |
| tree | 3d2213cdbdf94782543366144251b7711afeac41 /src/liballoc/string.rs | |
| parent | a4d11495f9e70ee246ab6a61dec8bdc751fb142a (diff) | |
| download | rust-0a6c724ddedf10e60b6fff76a9347cabf1807c04.tar.gz rust-0a6c724ddedf10e60b6fff76a9347cabf1807c04.zip | |
Add missing link in string doc
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 96bd6273c94..b1919c7c968 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -82,7 +82,7 @@ use boxed::Box; /// /// # Examples /// -/// You can create a `String` from a literal string with `String::from`: +/// You can create a `String` from a literal string with [`String::from`]: /// /// ``` /// let hello = String::from("Hello, world!"); @@ -98,6 +98,7 @@ use boxed::Box; /// hello.push_str("orld!"); /// ``` /// +/// [`String::from`]: #method.from /// [`char`]: ../../std/primitive.char.html /// [`push`]: #method.push /// [`push_str`]: #method.push_str |
