From 9c4d4247b1f698b8e1e6a4a2dec637c4b5692dff Mon Sep 17 00:00:00 2001 From: nnaka Date: Sun, 11 Mar 2018 04:13:55 -0400 Subject: [PATCH] P.5 example read int array size mismatch (#1161) Expand comment to clarify problem. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 0694513..e317419 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -697,7 +697,7 @@ Or better still just use the type system and replace `Int` with `int32_t`. void read(int* p, int n); // read max n integers into *p int a[100]; - read(a, 1000); // bad + read(a, 1000); // bad, off the end better