diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-08-26 06:46:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-26 06:46:36 -0700 |
| commit | fdf4598f8c5d74b5e66a5d5c9cc2182d79403a92 (patch) | |
| tree | 198b979a3b18e76b51a3411f6de1dc97c7956d85 /src/liballoc | |
| parent | cc5c1e39f475d6b91b85191d4ad3cd32d110cbed (diff) | |
| parent | 0a6c724ddedf10e60b6fff76a9347cabf1807c04 (diff) | |
| download | rust-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.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 |
