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

This commit is contained in:
Ivor Wanders
2023-09-23 17:19:50 +02:00
committed by GitHub
parent 1ce29fa22f
commit aa87ab8b40
31 changed files with 49 additions and 49 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ int main()
{
std::cout << j_invalid.dump() << std::endl;
}
catch (json::type_error& e)
catch (const json::type_error& e)
{
std::cout << e.what() << std::endl;
}