diff --git a/include/nlohmann/detail/json_pointer.hpp b/include/nlohmann/detail/json_pointer.hpp index ebf3ca8a8..6bdcedd5e 100644 --- a/include/nlohmann/detail/json_pointer.hpp +++ b/include/nlohmann/detail/json_pointer.hpp @@ -337,7 +337,7 @@ class json_pointer "' must not begin with '0'")); } - // error condition (cf. RFC 6901, Sect. 4 & Sect. 7) + // error condition (cf. RFC 6901, Sect. 4) if (JSON_HEDLEY_UNLIKELY(s.size() > 1 and not (s[0] >= '1' and s[0] <= '9'))) { JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number")); diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 686cd52cd..57a697fa2 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -10411,7 +10411,7 @@ class json_pointer "' must not begin with '0'")); } - // error condition (cf. RFC 6901, Sect. 4 & Sect. 7) + // error condition (cf. RFC 6901, Sect. 4) if (JSON_HEDLEY_UNLIKELY(s.size() > 1 and not (s[0] >= '1' and s[0] <= '9'))) { JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number"));