about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-10-15 09:25:30 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-10-15 20:22:16 -0400
commit65835d1059b91fb6458942ea1dc4273990b035e2 (patch)
treeec21191bd7bf2eeecd3928df448226748d9976f1 /library/std
parentdd7fc54ebdca419ad9d3ab1e9f5ed14e770768ea (diff)
Deny broken intra-doc links in linkchecker
Since rustdoc isn't warning about these links, check for them manually.
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/ffi/c_str.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs
index 13021738af1..6df4eb99259 100644
--- a/library/std/src/ffi/c_str.rs
+++ b/library/std/src/ffi/c_str.rs
@@ -1383,7 +1383,8 @@ impl CStr {
     /// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD] and return a
     /// [`Cow`]`::`[`Owned`]`(`[`String`]`)` with the result.
     ///
-    /// [`str`]: prim@str
+    /// [`str`]: primitive@str
+    /// [`&str`]: primitive@str
     /// [`Borrowed`]: Cow::Borrowed
     /// [`Owned`]: Cow::Owned
     /// [U+FFFD]: crate::char::REPLACEMENT_CHARACTER