diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 9a870eb5610287439b5ac7e599d8f4362467d0ea..f2af42fc54b46a215c1f34e5d2ba2b291906e168 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -20613,7 +20613,7 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste : mx(check_size(x)) , my(check_size(y)) // now we know x and y have a valid size - , data(mx*my*sizeof(int)) // will throw std::bad_alloc on error + , data(mx * my) // will throw std::bad_alloc on error { // picture is ready-to-use }