mirror of
https://github.com/nlohmann/json.git
synced 2026-11-06 04:39:20 +00:00
Merge pull request #2679 from frasermarlow/patch-1
Update parse_exceptions.md - correct `json::exception::parse_error`
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user