Merge pull request #2679 from frasermarlow/patch-1

Update parse_exceptions.md - correct `json::exception::parse_error`
This commit is contained in:
Niels Lohmann 2021-03-23 07:44:32 +01:00 committed by GitHub
commit 80e7d6fd9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ try
{
j = json::parse(my_input);
}
catch (json::exception::parse_error& ex)
catch (json::parse_error& ex)
{
std::cerr << "parse error at byte " << ex.byte << std::endl;
}