File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/core/src/iter/adapters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -917,10 +917,10 @@ where
917917 }
918918}
919919
920- // Specialization: For iterators that never return more than one item, the `frontiter` and
920+ // Specialization: When the inner iterator `U` never returns more than one item, the `frontiter` and
921921// `backiter` states are a waste, because they'll always have already consumed their item. So in
922922// this impl, we completely ignore them and just focus on `self.iter`, and we only call the inner
923- // `next()` one time.
923+ // `U:: next()` one time.
924924//
925925// It's mostly fine if we accidentally mix this with the more generic impls, e.g. by forgetting to
926926// specialize one of the methods. If the other impl did set the front or back, we wouldn't see it
You can’t perform that action at this time.
0 commit comments