Skip to content

Commit f459e29

Browse files
bors[bot]mulkieranmeltinglava
authored
Merge #418 #429
418: Add a stability specification to the docs for unique and unique_by r=jswrenn a=mulkieran 429: add caching to travis r=jswrenn a=meltinglava This is so that the pipeline does not download and compile all the dependencies all the time. Its recompiles them when a new compiler is used. Co-authored-by: mulhern <[email protected]> Co-authored-by: Meltinglava <[email protected]>
3 parents 88796ed + ef96125 + a27f865 commit f459e29

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ matrix:
66
- rust: stable
77
- rust: beta
88
- rust: nightly
9+
cache: cargo # https://docs.travis-ci.com/user/languages/rust/#dependency-management
910
branches:
1011
only:
1112
- master

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,10 @@ pub trait Itertools : Iterator {
10211021
/// Clones of visited elements are stored in a hash set in the
10221022
/// iterator.
10231023
///
1024+
/// The iterator is stable, returning the non-duplicate items in the order
1025+
/// in which they occur in the adapted iterator. In a set of duplicate
1026+
/// items, the first item encountered is the item retained.
1027+
///
10241028
/// ```
10251029
/// use itertools::Itertools;
10261030
///
@@ -1043,6 +1047,10 @@ pub trait Itertools : Iterator {
10431047
/// with the keying function `f` by hash and equality.
10441048
/// The keys are stored in a hash set in the iterator.
10451049
///
1050+
/// The iterator is stable, returning the non-duplicate items in the order
1051+
/// in which they occur in the adapted iterator. In a set of duplicate
1052+
/// items, the first item encountered is the item retained.
1053+
///
10461054
/// ```
10471055
/// use itertools::Itertools;
10481056
///

0 commit comments

Comments
 (0)