Skip to content

Commit 3ae66c1

Browse files
author
pezy chen
authored
Merge pull request Mooophy#666 from Tanc-ANT/FixComment
fix the wrong comment in 10.37
2 parents 16fb452 + 477f7ae commit 3ae66c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ch10/ex10_34_35_36_37.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ int main()
4545
std::list<int> ret_lst(8 - 3);
4646
std::copy(vec.cbegin() + 3, vec.cbegin() + 8, ret_lst.rbegin());
4747
// 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
48-
// ^ ^
49-
// rend rbegin
48+
// ^ ^
49+
// rend rbegin
5050
// @note: std::copy copies the range [first, last) into result.
5151
// hence, the arguments here denote:
52-
// [6 5 4 3 2 1)
52+
// [7 6 5 4 3 2)
5353
// ^ this one is specified but not included.
5454
for (auto i : ret_lst) std::cout << i << " ";
5555
std::cout << std::endl;

0 commit comments

Comments
 (0)