]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/collections/hashmap/table.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / libstd / collections / hashmap / table.rs
index 2edb8cd092e0c61e4107f0b17c3feb0ec59beb4c..87a5cc1484a24b6dc390a8487aa18cf770e305df 100644 (file)
@@ -674,14 +674,14 @@ pub fn iter(&self) -> Entries<K, V> {
         }
     }
 
-    pub fn mut_iter(&mut self) -> MutEntries<K, V> {
+    pub fn iter_mut(&mut self) -> MutEntries<K, V> {
         MutEntries {
             iter: self.raw_buckets(),
             elems_left: self.size(),
         }
     }
 
-    pub fn move_iter(self) -> MoveEntries<K, V> {
+    pub fn into_iter(self) -> MoveEntries<K, V> {
         MoveEntries {
             iter: self.raw_buckets(),
             table: self,
@@ -872,7 +872,7 @@ fn drop(&mut self) {
             return;
         }
         // This is done in reverse because we've likely partially taken
-        // some elements out with `.move_iter()` from the front.
+        // some elements out with `.into_iter()` from the front.
         // Check if the size is 0, so we don't do a useless scan when
         // dropping empty tables such as on resize.
         // Also avoid double drop of elements that have been already moved out.