[llvm] r286657 - Fix typo in comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 14:41:47 PST 2016


Author: ruiu
Date: Fri Nov 11 16:41:47 2016
New Revision: 286657

URL: http://llvm.org/viewvc/llvm-project?rev=286657&view=rev
Log:
Fix typo in comment.

Modified:
    llvm/trunk/include/llvm/ADT/STLExtras.h

Modified: llvm/trunk/include/llvm/ADT/STLExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/STLExtras.h?rev=286657&r1=286656&r2=286657&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Fri Nov 11 16:41:47 2016
@@ -767,7 +767,7 @@ private:
 ///
 /// std::vector<char> Items = {'A', 'B', 'C', 'D'};
 /// for (auto X : enumerate(Items)) {
-///   printf("Item %d - %c\n", X.Item, X.Value);
+///   printf("Item %d - %c\n", X.Index, X.Value);
 /// }
 ///
 /// Output:




More information about the llvm-commits mailing list