From 97544a0b810ee96090a2bccfdf43f336a2e152e1 Mon Sep 17 00:00:00 2001 From: BearLin Date: Wed, 9 Mar 2016 00:05:44 +0800 Subject: [PATCH] Simplified further --- cppguide.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cppguide.html b/cppguide.html index 507404d..4956a67 100644 --- a/cppguide.html +++ b/cppguide.html @@ -819,8 +819,8 @@ for (int i = 0; i < 1000000; ++i) { } -

It may be more efficient to declare such a variable -(which is used in a loop) outside that loop:

+

It may be more efficient to declare such variables +outside the loop, as in:

Foo f;  // My ctor and dtor get called once each.
 for (int i = 0; i < 1000000; ++i) {