From efc6f6eabe2bf1e73824e2139ae11c746d7295e7 Mon Sep 17 00:00:00 2001 From: Wu Yongwei Date: Sun, 27 Nov 2022 12:30:16 +0800 Subject: [PATCH] ES.2: Fix wrong code logic in the example (#1999) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ae27ad3..1ae151b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10269,7 +10269,7 @@ The more traditional and lower-level near-equivalent is longer, messier, harder is.read(s, maxstring); res[elemcount++] = s; } - nread = &elemcount; + *nread = elemcount; return res; }