mirror of
https://github.com/nlohmann/json.git
synced 2025-01-20 00:03:02 +08:00
Merge pull request #2679 from frasermarlow/patch-1
Update parse_exceptions.md - correct `json::exception::parse_error`
This commit is contained in:
commit
80e7d6fd9f
@ -8,7 +8,7 @@ try
|
|||||||
{
|
{
|
||||||
j = json::parse(my_input);
|
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;
|
std::cerr << "parse error at byte " << ex.byte << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user