1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-16 18:41:53 +03:00

Capture exceptions by const& in docs. (#4099)

This commit is contained in:
Ivor Wanders
2023-09-23 11:19:50 -04:00
committed by GitHub
parent 1ce29fa22f
commit aa87ab8b40
31 changed files with 49 additions and 49 deletions

View File

@ -10,7 +10,7 @@ int main()
// parsing input with a syntax error
json::parse("[1,2,3,]");
}
catch (json::parse_error& e)
catch (const json::parse_error& e)
{
// output exception information
std::cout << "message: " << e.what() << '\n'