Update iterators.md

This commit is contained in:
Chaoqi Zhang 2022-05-10 10:17:51 +08:00 committed by GitHub
parent 3af932e3f5
commit 124c3bc350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ for (auto& [key, val] : j_object.items())
```cpp
json j = {1, 2, 3, 4};
for (auto it = j.begin(); it != j.end(); ++it)
for (auto it = j.rbegin(); it != j.rend(); ++it)
{
std::cout << *it << std::endl;
}