From ca58fab8c4dfa2f2d1bf680a00497bad260cdc76 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 8 May 2017 21:10:58 +0000 Subject: [PATCH] STLExtras: Fix enumerate() documentation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302467 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/STLExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index 15945adbe58..86cc28458df 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -1079,7 +1079,7 @@ private: /// /// std::vector 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: -- 2.40.0