summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-05-08 21:10:58 +0000
committerMatthias Braun <matze@braunis.de>2017-05-08 21:10:58 +0000
commitd0c4676f3971572eda0f6659178e70d4da7530fa (patch)
treeefed5c93e47f10eac140eeb623af38af6fd4c750
parent5404f114d327ecd67d7eb60bf45f4df46e4f7c9c (diff)
downloadbcm5719-llvm-d0c4676f3971572eda0f6659178e70d4da7530fa.tar.gz
bcm5719-llvm-d0c4676f3971572eda0f6659178e70d4da7530fa.zip
STLExtras: Fix enumerate() documentation
llvm-svn: 302467
-rw-r--r--llvm/include/llvm/ADT/STLExtras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index 15945adbe58..86cc28458df 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -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:
OpenPOWER on IntegriCloud