From c3ee965a285e5aac89ef583f98436f87b20b13e7 Mon Sep 17 00:00:00 2001 From: Severin Meyer Date: Tue, 15 Nov 2016 16:00:56 +0100 Subject: [PATCH] P.9: Fix typo in code example --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 6b6ee80..d468617 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -943,7 +943,7 @@ There are several more performance bugs and gratuitous complication. void lower(zstring s) { - for (int i = 0; i < strlen(s); ++s) s[i] = tolower(s[i]); + for (int i = 0; i < strlen(s); ++i) s[i] = tolower(s[i]); } Yes, this is an example from production code.