Skip to content

Commit fef2ce3

Browse files
committed
fix of sample implementation
1 parent 59e80b4 commit fef2ce3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reference/algorithm/ranges_mismatch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ struct mismatch_impl {
196196
template<input_iterator I1, sentinel_for<I1> S1, input_iterator I2, sentinel_for<I2> S2, class Pred = ranges::equal_to, class Proj1 = identity, class Proj2 = identity>
197197
requires indirectly_comparable<I1, I2, Pred, Proj1, Proj2>
198198
constexpr mismatch_result<I1, I2> operator()(I1 first1, S1 last1, I2 first2, S2 last2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {}) const {
199-
for ( ; first1 != last1 && first != last2; ++first1, ++first2)
199+
for ( ; first1 != last1 && first2 != last2; ++first1, ++first2)
200200
if (!bool(invoke(pred, invoke(proj1, *first1), invoke(proj2, *first2))))
201201
return {first1, first2};
202202
return {first1, first2};

0 commit comments

Comments
 (0)