mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
off-by-one error in the documentation
This commit is contained in:
parent
ca2bbdb15b
commit
0767290c26
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user