diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 1857e58..dc4c00c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7196,6 +7196,8 @@ This will copy each elements of `vs` into `s`. Better // do work } +**Example, bad**: + int i = 0; while (i < vec.size()) { // do work