Skip to content

Commit ef96125

Browse files
committed
Add criterion about which item among a set of duplicates is retained
Signed-off-by: mulhern <[email protected]>
1 parent 58b37a4 commit ef96125

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,8 @@ pub trait Itertools : Iterator {
988988
/// iterator.
989989
///
990990
/// The iterator is stable, returning the non-duplicate items in the order
991-
/// in which they occur in the adapted iterator.
991+
/// in which they occur in the adapted iterator. In a set of duplicate
992+
/// items, the first item encountered is the item retained.
992993
///
993994
/// ```
994995
/// use itertools::Itertools;
@@ -1013,7 +1014,8 @@ pub trait Itertools : Iterator {
10131014
/// The keys are stored in a hash set in the iterator.
10141015
///
10151016
/// The iterator is stable, returning the non-duplicate items in the order
1016-
/// in which they occur in the adapted iterator.
1017+
/// in which they occur in the adapted iterator. In a set of duplicate
1018+
/// items, the first item encountered is the item retained.
10171019
///
10181020
/// ```
10191021
/// use itertools::Itertools;

0 commit comments

Comments
 (0)