[llvm] r302467 - STLExtras: Fix enumerate() documentation

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon May 8 14:10:58 PDT 2017


Author: matze
Date: Mon May  8 16:10:58 2017
New Revision: 302467

URL: http://llvm.org/viewvc/llvm-project?rev=302467&view=rev
Log:
STLExtras: Fix enumerate() documentation

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=302467&r1=302466&r2=302467&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Mon May  8 16:10:58 2017
@@ -1079,7 +1079,7 @@ private:
 ///
 /// std::vector<char> Items = {'A', 'B', 'C', 'D'};
 /// for (auto X : enumerate(Items)) {
-///   printf("Item %d - %c\n", X.Index, X.Value);
+///   printf("Item %d - %c\n", X.index(), X.value());
 /// }
 ///
 /// Output:




More information about the llvm-commits mailing list