diff --git a/ch10/10.37.cpp b/ch10/10.37.cpp index 223bbb5..9f3d7eb 100644 --- a/ch10/10.37.cpp +++ b/ch10/10.37.cpp @@ -4,7 +4,7 @@ int main() { std::vector vi{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; - std::list li(vi.rbegin() + 2, vi.rend() - 3); + std::list li(vi.rbegin() + 3, vi.rend() - 2); for (const auto &i : li) std::cout << i << " ";