diff --git a/src/mapref/entry.rs b/src/mapref/entry.rs index 6edf5427..ef4167a0 100644 --- a/src/mapref/entry.rs +++ b/src/mapref/entry.rs @@ -53,7 +53,7 @@ impl<'a, K: Eq + Hash, V> Entry<'a, K, V> { } /// Return a mutable reference to the element if it exists, - /// otherwise a provided value and return a mutable reference to that. + /// otherwise insert a provided value and return a mutable reference to that. pub fn or_insert(self, value: V) -> RefMut<'a, K, V> { match self { Entry::Occupied(entry) => entry.into_ref(), diff --git a/src/mapref/entry_ref.rs b/src/mapref/entry_ref.rs index da8e7c29..a5400403 100644 --- a/src/mapref/entry_ref.rs +++ b/src/mapref/entry_ref.rs @@ -56,7 +56,7 @@ impl<'a, 'q, K: Eq + Hash + From<&'q Q>, Q, V> EntryRef<'a, 'q, K, Q, V> { } /// Return a mutable reference to the element if it exists, - /// otherwise a provided value and return a mutable reference to that. + /// otherwise insert a provided value and return a mutable reference to that. pub fn or_insert(self, value: V) -> RefMut<'a, K, V> { match self { EntryRef::Occupied(entry) => entry.into_ref(),