about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-14 15:35:32 +0200
committerGitHub <noreply@github.com>2020-04-14 15:35:32 +0200
commit340b7314e3c95c1e21ba5dd19f08a532cc780ac9 (patch)
treef4af5e0a720a009f724aa712e4df81bc7583e190 /src
parent03167297aa991c289458d0c375fa2d32c1740105 (diff)
parent15ba31d010c3c4840b57d91ad9d5b0b2c746e315 (diff)
downloadrust-340b7314e3c95c1e21ba5dd19f08a532cc780ac9.tar.gz
rust-340b7314e3c95c1e21ba5dd19f08a532cc780ac9.zip
Rollup merge of #71121 - AnthonyMikh:fix_string_doc_link, r=Dylan-DPC
Fix broken link in documentation for String::from_utf8
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/string.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 86e09b7be2d..80fa8139915 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -482,6 +482,7 @@ impl String {
     /// [`String`]: struct.String.html
     /// [`u8`]: ../../std/primitive.u8.html
     /// [`Vec<u8>`]: ../../std/vec/struct.Vec.html
+    /// [`&str`]: ../../std/primitive.str.html
     /// [`str::from_utf8`]: ../../std/str/fn.from_utf8.html
     /// [`into_bytes`]: struct.String.html#method.into_bytes
     /// [`FromUtf8Error`]: struct.FromUtf8Error.html