about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-01 01:18:38 +0800
committerGitHub <noreply@github.com>2018-05-01 01:18:38 +0800
commitb2392938955a5bc5c892f277624b772fb2358e31 (patch)
treeb844be52c8bf1c9fcc4b82eb47fdeb54472600f3 /src/libstd
parent1308d99cacd68057a20a933b8cb223210da6b9c2 (diff)
parent269d2790946858dd1b504c21c54a267ac63dc15a (diff)
downloadrust-b2392938955a5bc5c892f277624b772fb2358e31.tar.gz
rust-b2392938955a5bc5c892f277624b772fb2358e31.zip
Rollup merge of #50316 - ehuss:fix-doc-links, r=frewsxcv
Fix some broken links in docs.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/table.rs2
-rw-r--r--src/libstd/ffi/c_str.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/table.rs b/src/libstd/collections/hash/table.rs
index 52c53dc3b12..b50652ed6b5 100644
--- a/src/libstd/collections/hash/table.rs
+++ b/src/libstd/collections/hash/table.rs
@@ -79,7 +79,7 @@ impl TaggedHashUintPtr {
 ///
 /// Essential invariants of this structure:
 ///
-///   - if t.hashes[i] == EMPTY_BUCKET, then `Bucket::at_index(&t, i).raw`
+///   - if `t.hashes[i] == EMPTY_BUCKET`, then `Bucket::at_index(&t, i).raw`
 ///     points to 'undefined' contents. Don't read from it. This invariant is
 ///     enforced outside this module with the `EmptyBucket`, `FullBucket`,
 ///     and `SafeHash` types.
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index c88c2bc9137..8164f52d3c3 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -1118,6 +1118,7 @@ impl CStr {
     ///
     /// [`Cow`]: ../borrow/enum.Cow.html
     /// [`Borrowed`]: ../borrow/enum.Cow.html#variant.Borrowed
+    /// [`Owned`]: ../borrow/enum.Cow.html#variant.Owned
     /// [`str`]: ../primitive.str.html
     /// [`String`]: ../string/struct.String.html
     ///