summaryrefslogtreecommitdiff
path: root/8p11.cpp
diff options
context:
space:
mode:
Diffstat (limited to '8p11.cpp')
-rw-r--r--8p11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/8p11.cpp b/8p11.cpp
index 267e692..49a7825 100644
--- a/8p11.cpp
+++ b/8p11.cpp
@@ -32,9 +32,9 @@ int main () {
people.push_back(info);
}
- for(auto &a : people) {
+ for(const auto &a : people) {
std::cout << a.name << "\n";
- for(auto &b : a.phones) {
+ for(const auto &b : a.phones) {
std::cout << b << "\n";
}
}