Skip to content

Commit 5e151ec

Browse files
Remove free function get
A `use itertools::*;` might conflict with such a general function name.
1 parent 773d0fb commit 5e151ec

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/iter_index.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod private_iter_index {
1717
impl Sealed for ops::RangeFull {}
1818
}
1919

20-
/// Used by [`get`] and [`Itertools::get`] to know which iterator
20+
/// Used by [`Itertools::get`] to know which iterator
2121
/// to turn different ranges into.
2222
pub trait IteratorIndex<I>: private_iter_index::Sealed
2323
where
@@ -28,7 +28,7 @@ where
2828

2929
/// Returns an adapted iterator for the current index.
3030
///
31-
/// Prefer calling [`get`] or [`Itertools::get`] instead
31+
/// Prefer calling [`Itertools::get`] instead
3232
/// of calling this directly.
3333
fn index(self, from: I) -> Self::Output;
3434
}
@@ -107,9 +107,6 @@ where
107107
}
108108
}
109109

110-
/// Returns an iterator over a subsection of the iterator.
111-
///
112-
/// See [`Itertools::get`] for more information.
113110
pub fn get<I, R>(iter: I, index: R) -> R::Output
114111
where
115112
I: IntoIterator,

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ pub use crate::concat_impl::concat;
154154
pub use crate::cons_tuples_impl::cons_tuples;
155155
pub use crate::diff::diff_with;
156156
pub use crate::diff::Diff;
157-
pub use crate::iter_index::get;
158157
#[cfg(feature = "use_alloc")]
159158
pub use crate::kmerge_impl::kmerge_by;
160159
pub use crate::minmax::MinMaxResult;

0 commit comments

Comments
 (0)