diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 926175ca7..b5540e3d2 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1459,8 +1459,7 @@ scan_number_done: case '9': return scan_number(); - // end of input (the null byte is needed when parsing from - // string literals) + // end of input case std::char_traits::eof(): return token_type::end_of_input; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 24b35e60d..3f15880e1 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -4041,8 +4041,7 @@ scan_number_done: case '9': return scan_number(); - // end of input (the null byte is needed when parsing from - // string literals) + // end of input case std::char_traits::eof(): return token_type::end_of_input;