From f05802af6426247c8f45f827f5f5513530c41b59 Mon Sep 17 00:00:00 2001 From: Andrew Pardoe Date: Mon, 12 Feb 2018 11:08:36 -0800 Subject: [PATCH] typo in ES.20 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 95fb79b..dfed202 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10171,7 +10171,7 @@ In the not uncommon case where the input target and the input operation get sepa int i2 = 0; // better // ... - cin >> i; + cin >> i2; A good optimizer should know about input operations and eliminate the redundant operation.