Skip to content

Commit

Permalink
mob next [ci-skip] [ci skip] [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
NoneTheWisr committed Jan 16, 2022
1 parent aa2db90 commit 146fb0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ where
debug_fmt_fields!(EnumerateOk, iter);
}

impl<I,T,E> Iterator for EnumerateOk<I>
impl<I,T,E> Iterator for EnumerateOk<I>
where I: Iterator<Item = Result<T,E>>,
{
type Item = Result<(usize,T),E>;
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,8 @@ pub trait Itertools : Iterator {
}

/// Return an iterator adaptor that adds an index to `Result::Ok`
/// values. `Result::Err` values are unchanged.
/// values. `Result::Err` values are unchanged. The index is incremented
/// only for `Result::Ok` values.
///
/// ```
/// use itertools::Itertools;
Expand Down

0 comments on commit 146fb0e

Please sign in to comment.