diff --git a/examples/ch06/fig06_02.cpp b/examples/ch06/fig06_02.cpp index 4615905..da996ae 100755 --- a/examples/ch06/fig06_02.cpp +++ b/examples/ch06/fig06_02.cpp @@ -18,8 +18,8 @@ int main() { std::array values2{1.1, 2.2, 3.3, 4.4}; // output each array element's value - for (size_t i{0}; i < values.size(); ++i) { - std::cout << fmt::format("{} ", values.at(i)); + for (size_t i{0}; i < values2.size(); ++i) { + std::cout << fmt::format("{} ", values2.at(i)); } std::cout << "\n";