Skip to content

Commit e7e4de4

Browse files
committed
Correct "indexes" to "indices" in Keys doc
Both are valid English, but we use "indices" consistently everywhere else, and that's generally more common in technical contexts.
1 parent a34d7ae commit e7e4de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/map/iter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ impl<K, V> Default for Keys<'_, K, V> {
385385
/// [values]: IndexMap#impl-Index<usize>-for-IndexMap<K,+V,+S>
386386
///
387387
/// Since `Keys` is also an iterator, consuming items from the iterator will
388-
/// offset the effective indexes. Similarly, if `Keys` is obtained from
389-
/// [`Slice::keys`], indexes will be interpreted relative to the position of
388+
/// offset the effective indices. Similarly, if `Keys` is obtained from
389+
/// [`Slice::keys`], indices will be interpreted relative to the position of
390390
/// that slice.
391391
///
392392
/// # Examples

0 commit comments

Comments
 (0)