]> git.lizzy.rs Git - rust.git/commitdiff
Fix broken link in documentation for String::from_utf8
authorAnthonyMikh <anthony.mikh@yandex.ru>
Tue, 14 Apr 2020 12:07:57 +0000 (15:07 +0300)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 12:07:57 +0000 (15:07 +0300)
src/liballoc/string.rs

index 7c89d38caa4e64dbd3ad7a0f1d445fff50870bc4..708819f1e208b413b8623ef5341f0f193e6ab029 100644 (file)
@@ -482,6 +482,7 @@ pub fn from_str(_: &str) -> 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