Skip to content

Commit

Permalink
Update comments for multiunzip
Browse files Browse the repository at this point in the history
  • Loading branch information
phimuemue committed Dec 18, 2021
1 parent 3003c2a commit 2357d1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unziptuple.rs
Expand Up @@ -39,11 +39,11 @@ macro_rules! impl_unzip_iter {
#[allow(non_snake_case)]
impl<IT: Iterator<Item = ($($T,)*)>, $($T, $FromT: Default + Extend<$T>),* > MultiUnzip<($($FromT,)*)> for IT {
fn multiunzip(self) -> ($($FromT,)*) {
// This implementation mirrors the logic of Iterator::unzip as close as possible.
// Unfortunately a lot of the used api there is still unstable represented by
// the commented out parts that follow.
// This implementation mirrors the logic of Iterator::unzip resp. Extend for (A, B) as close as possible.
// Unfortunately a lot of the used api there is still unstable (https://github.com/rust-lang/rust/issues/72631).
//
// https://doc.rust-lang.org/src/core/iter/traits/iterator.rs.html#2816-2844
// Iterator::unzip: https://doc.rust-lang.org/src/core/iter/traits/iterator.rs.html#2825-2865
// Extend for (A, B): https://doc.rust-lang.org/src/core/iter/traits/collect.rs.html#370-411

let mut res = ($($FromT::default(),)*);
let ($($FromT,)*) = &mut res;
Expand Down

0 comments on commit 2357d1a

Please sign in to comment.