Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
455: Unify documentation r=jswrenn a=robinmoussu

Fix rust-itertools#448 

Co-authored-by: Robin Moussu <moussu.robin@pm.me>
  • Loading branch information
bors[bot] and robinmoussu committed Jun 26, 2020
2 parents e3ea516 + 5d22f45 commit 7565519
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ pub struct Interleave<I, J> {
///
/// `IntoIterator` enabled version of `i.interleave(j)`.
///
/// ```
/// use itertools::interleave;
///
/// for elt in interleave(&[1, 2, 3], &[2, 3, 4]) {
/// /* loop body */
/// }
/// ```
/// See [`.interleave()`](trait.Itertools.html#method.interleave) for more information.
pub fn interleave<I, J>(i: I, j: J) -> Interleave<<I as IntoIterator>::IntoIter, <J as IntoIterator>::IntoIter>
where I: IntoIterator,
J: IntoIterator<Item = I::Item>
Expand Down

0 comments on commit 7565519

Please sign in to comment.