From d0c4676f3971572eda0f6659178e70d4da7530fa 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 llvm-svn: 302467 --- llvm/include/llvm/ADT/STLExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index 15945ad..86cc284 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/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.7.4