about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-06 09:38:02 -0700
committerGitHub <noreply@github.com>2016-09-06 09:38:02 -0700
commitb5f5f8b865da393565c892a4cd4f3d111416e17a (patch)
treed7d0ce55a7aadca548c57b4f63cd7a7c4bc59f38
parentc8140bde4a6244ebe853b2076fcf7217789b512e (diff)
parent216cf9c124f8f8dd3c8d7e99ad6e6821a02edcae (diff)
downloadrust-b5f5f8b865da393565c892a4cd4f3d111416e17a.tar.gz
rust-b5f5f8b865da393565c892a4cd4f3d111416e17a.zip
Rollup merge of #36243 - GuillaumeGomez:hash_map_links, r=steveklabnik
Add missing urls

r? @steveklabnik
-rw-r--r--src/libcollections/btree/map.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs
index 79840df1677..624083a8eaf 100644
--- a/src/libcollections/btree/map.rs
+++ b/src/libcollections/btree/map.rs
@@ -56,8 +56,12 @@ use self::Entry::*;
 /// however, performance is excellent.
 ///
 /// It is a logic error for a key to be modified in such a way that the key's ordering relative to
-/// any other key, as determined by the `Ord` trait, changes while it is in the map. This is
-/// normally only possible through `Cell`, `RefCell`, global state, I/O, or unsafe code.
+/// any other key, as determined by the [`Ord`] trait, changes while it is in the map. This is
+/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
+///
+/// [`Ord`]: ../../std/cmp/trait.Ord.html
+/// [`Cell`]: ../../std/cell/struct.Cell.html
+/// [`RefCell`]: ../../std/cell/struct.RefCell.html
 ///
 /// # Examples
 ///
@@ -2020,7 +2024,7 @@ impl<'a, K: Ord, V> VacantEntry<'a, K, V> {
         self.key
     }
 
-    /// Sets the value of the entry with the VacantEntry's key,
+    /// Sets the value of the entry with the `VacantEntry`'s key,
     /// and returns a mutable reference to it.
     ///
     /// # Examples
@@ -2192,7 +2196,7 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
         self.handle.into_kv_mut().1
     }
 
-    /// Sets the value of the entry with the OccupiedEntry's key,
+    /// Sets the value of the entry with the `OccupiedEntry`'s key,
     /// and returns the entry's old value.
     ///
     /// # Examples