Clarify example snippets a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-10-28 20:52:20 +00:00
parent b3727fe3ec
commit 087f050bf9

View File

@ -998,7 +998,7 @@ vector is also useful when interfacing with code that expects vectors :).
<pre>
for ( ... ) {
std::vector&lt;foo&gt; V;
use V;
// make use of V.
}
</pre>
</div>
@ -1009,7 +1009,7 @@ for ( ... ) {
<pre>
std::vector&lt;foo&gt; V;
for ( ... ) {
use V;
// make use of V.
V.clear();
}
</pre>