From 6bd5496581b6070c8ba61d607ca83efa202fbccb Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Thu, 23 Aug 2018 22:18:32 -0400 Subject: [PATCH] Fix tuples comment. --- CPP11.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CPP11.md b/CPP11.md index 5eb86f0..7aea076 100644 --- a/CPP11.md +++ b/CPP11.md @@ -683,7 +683,7 @@ elapsed_seconds.count(); // t number of seconds, represented as a `double` ### Tuples Tuples are a fixed-size collection of heterogeneous values. Access the elements of a `std::tuple` by unpacking using [`std::tie`](#stdtie), or using `std::get`. ```c++ -// `playerProfile` has type `std::tuple`. +// `playerProfile` has type `std::tuple`. auto playerProfile = std::make_tuple(51, "Frans Nielsen", "NYI"); std::get<0>(playerProfile); // 51 std::get<1>(playerProfile); // "Frans Nielsen" diff --git a/README.md b/README.md index 20ee2bf..f33977e 100644 --- a/README.md +++ b/README.md @@ -1250,7 +1250,7 @@ elapsed_seconds.count(); // t number of seconds, represented as a `double` ### Tuples Tuples are a fixed-size collection of heterogeneous values. Access the elements of a `std::tuple` by unpacking using [`std::tie`](#stdtie), or using `std::get`. ```c++ -// `playerProfile` has type `std::tuple`. +// `playerProfile` has type `std::tuple`. auto playerProfile = std::make_tuple(51, "Frans Nielsen", "NYI"); std::get<0>(playerProfile); // 51 std::get<1>(playerProfile); // "Frans Nielsen"