We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de18f1 commit 89767faCopy full SHA for 89767fa
core/src/iter/adapters/flatten.rs
@@ -917,10 +917,10 @@ where
917
}
918
919
920
-// Specialization: For iterators that never return more than one item, the `frontiter` and
+// Specialization: When the inner iterator `U` never returns more than one item, the `frontiter` and
921
// `backiter` states are a waste, because they'll always have already consumed their item. So in
922
// this impl, we completely ignore them and just focus on `self.iter`, and we only call the inner
923
-// `next()` one time.
+// `U::next()` one time.
924
//
925
// It's mostly fine if we accidentally mix this with the more generic impls, e.g. by forgetting to
926
// specialize one of the methods. If the other impl did set the front or back, we wouldn't see it
0 commit comments