Skip to content

Commit

Permalink
Fix P.11: Missing bug description.
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodyanyuk authored Dec 22, 2024
1 parent 6864a9f commit b7d1710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ Messy, low-level code breeds more such code.
}

This is low-level, verbose, and error-prone.
For example, we "forgot" to test for memory exhaustion.
For example, we "forgot" to test for memory exhaustion and assign new value to `sz`.
Instead, we could use `vector`:

vector<int> v;
Expand Down

0 comments on commit b7d1710

Please sign in to comment.