Skip to content

Commit

Permalink
fix the wrong comment in 10.37
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanc-ANT committed Jun 8, 2018
1 parent 16fb452 commit 477f7ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ch10/ex10_34_35_36_37.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ int main()
std::list<int> ret_lst(8 - 3);
std::copy(vec.cbegin() + 3, vec.cbegin() + 8, ret_lst.rbegin());
// 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
// ^ ^
// rend rbegin
// ^ ^
// rend rbegin
// @note: std::copy copies the range [first, last) into result.
// hence, the arguments here denote:
// [6 5 4 3 2 1)
// [7 6 5 4 3 2)
// ^ this one is specified but not included.
for (auto i : ret_lst) std::cout << i << " ";
std::cout << std::endl;
Expand Down

0 comments on commit 477f7ae

Please sign in to comment.