Skip to content

Commit 0241a18

Browse files
committed
Remove outdated comment on get_index_mut
1 parent 7304afc commit 0241a18

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/map/slice.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ impl<K, V> Slice<K, V> {
5757
///
5858
/// Valid indices are *0 <= index < self.len()*
5959
pub fn get_index_mut(&mut self, index: usize) -> Option<(&K, &mut V)> {
60-
// NB: we're not returning `&mut K` like `IndexMap::get_index_mut`,
61-
// because that was a mistake that should have required `MutableKeys`.
6260
self.entries.get_mut(index).map(Bucket::ref_mut)
6361
}
6462

0 commit comments

Comments
 (0)