From 7cef6e79bcd1ec1820c810ed200d60cdf0b97031 Mon Sep 17 00:00:00 2001 From: Chaoqi Zhang Date: Tue, 10 May 2022 12:08:49 +0800 Subject: [PATCH] Update iterators.md (#3481) --- docs/mkdocs/docs/features/iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mkdocs/docs/features/iterators.md b/docs/mkdocs/docs/features/iterators.md index 46f28f189..ce627e012 100644 --- a/docs/mkdocs/docs/features/iterators.md +++ b/docs/mkdocs/docs/features/iterators.md @@ -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; }