Minor fix in docs.

llvm-svn: 329277
This commit is contained in:
Alexander Kornienko 2018-04-05 12:48:22 +00:00
parent e6b49ef286
commit 94d9c391b6
1 changed files with 2 additions and 2 deletions

View File

@ -808,8 +808,8 @@ As a rule of thumb, use ``auto &`` unless you need to copy the result, and use
for (auto Val : Container) { Val.change(); saveSomewhere(Val); } for (auto Val : Container) { Val.change(); saveSomewhere(Val); }
// Copy pointers, but make it clear that they're pointers. // Copy pointers, but make it clear that they're pointers.
for (const auto \*Ptr : Container) { observe(\*Ptr); } for (const auto *Ptr : Container) { observe(*Ptr); }
for (auto \*Ptr : Container) { Ptr->change(); } for (auto *Ptr : Container) { Ptr->change(); }
Beware of non-determinism due to ordering of pointers Beware of non-determinism due to ordering of pointers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^