about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-08-26 06:46:36 -0700
committerGitHub <noreply@github.com>2017-08-26 06:46:36 -0700
commitfdf4598f8c5d74b5e66a5d5c9cc2182d79403a92 (patch)
tree198b979a3b18e76b51a3411f6de1dc97c7956d85 /src/liballoc
parentcc5c1e39f475d6b91b85191d4ad3cd32d110cbed (diff)
parent0a6c724ddedf10e60b6fff76a9347cabf1807c04 (diff)
downloadrust-fdf4598f8c5d74b5e66a5d5c9cc2182d79403a92.tar.gz
rust-fdf4598f8c5d74b5e66a5d5c9cc2182d79403a92.zip
Rollup merge of #44090 - GuillaumeGomez:str-doc, r=steveklabnik
Add missing link in string doc

r? @rust-lang/docs
Diffstat (limited to 'src/liballoc')
-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