From de505d38f996293ea13a6dd5f60e0f7ae86afec2 Mon Sep 17 00:00:00 2001 From: Andrew Pardoe Date: Thu, 24 Sep 2015 10:28:21 -0700 Subject: [PATCH] es.74 "loop induction variable" -> "loop variable" --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 39d4d7c..81d5dac 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -7243,7 +7243,7 @@ Avoid using the loop variable for other purposes after the loop. **Enforcement**: Warn when a variable modified inside the `for`-statement is declared outside the loop and not being used outside the loop. -**Discussion**: Scoping the loop induction variable to the loop body also helps code optimizers greatly. Recognizing that the induction variable +**Discussion**: Scoping the loop variable to the loop body also helps code optimizers greatly. Recognizing that the induction variable is only accessible in the loop body unblocks optimizations such as hoisting, strength reduction, loop-invariant code motion, etc.