about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-25 23:09:00 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-08-25 23:09:00 +0200
commit0a6c724ddedf10e60b6fff76a9347cabf1807c04 (patch)
tree3d2213cdbdf94782543366144251b7711afeac41 /src/liballoc/string.rs
parenta4d11495f9e70ee246ab6a61dec8bdc751fb142a (diff)
downloadrust-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.rs3
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