mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Rephrase the last paragraph in Local Variables section of cppguide.html to make it more clear
This commit is contained in:
parent
8c09ccf840
commit
d99f707392
|
@ -820,7 +820,7 @@ for (int i = 0; i < 1000000; ++i) {
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>It may be more efficient to declare such a variable
|
<p>It may be more efficient to declare such a variable
|
||||||
used in a loop outside that loop:</p>
|
(which is used in a loop) outside that loop:</p>
|
||||||
|
|
||||||
<pre>Foo f; // My ctor and dtor get called once each.
|
<pre>Foo f; // My ctor and dtor get called once each.
|
||||||
for (int i = 0; i < 1000000; ++i) {
|
for (int i = 0; i < 1000000; ++i) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user