From 0767290c2605cb238865260da261c7d294b83edd Mon Sep 17 00:00:00 2001 From: Niels Date: Fri, 24 Jun 2016 08:06:41 +0200 Subject: [PATCH] off-by-one error in the documentation --- README.md | 2 +- test/src/unit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 881460f4..d2a1ef56 100644 --- a/README.md +++ b/README.md @@ -323,7 +323,7 @@ json j_original = R"({ })"_json; // access members with a JSON pointer (RFC 6901) -j_original["/baz/2"_json_pointer]; +j_original["/baz/1"_json_pointer]; // "two" // a JSON patch (RFC 6902) diff --git a/test/src/unit.cpp b/test/src/unit.cpp index 298a2bb1..fe3bc773 100644 --- a/test/src/unit.cpp +++ b/test/src/unit.cpp @@ -10531,7 +10531,7 @@ TEST_CASE("README", "[hide]") })"_json; // access members with a JSON pointer (RFC 6901) - j_original["/baz/2"_json_pointer]; + j_original["/baz/1"_json_pointer]; // "two" // a JSON patch (RFC 6902)