Skip to content

Commit

Permalink
💬 replaced "backspace" with "backslash" #509
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed May 13, 2017
1 parent 9b764ee commit 723c875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11586,7 +11586,7 @@ class basic_json

// other characters after escape
default:
error_message = "invalid string: forbidden character after backspace";
error_message = "invalid string: forbidden character after backslash";
return token_type::parse_error;
}

Expand Down
2 changes: 1 addition & 1 deletion test/src/unit-class_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ TEST_CASE("parser class")
if (c > 0x1f)
{
CHECK_THROWS_WITH(parse_string(s.c_str()).parse(),
"[json.exception.parse_error.101] parse error at 3: syntax error - invalid string: forbidden character after backspace; last read '\"\\" + std::string(1, static_cast<char>(c)) + "'");
"[json.exception.parse_error.101] parse error at 3: syntax error - invalid string: forbidden character after backslash; last read '\"\\" + std::string(1, static_cast<char>(c)) + "'");
}
break;
}
Expand Down

0 comments on commit 723c875

Please sign in to comment.