aboutsummaryrefslogtreecommitdiff
path: root/examples/list_people.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/list_people.cc')
-rw-r--r--examples/list_people.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/list_people.cc b/examples/list_people.cc
index 3daa3159..68e5666d 100644
--- a/examples/list_people.cc
+++ b/examples/list_people.cc
@@ -8,8 +8,8 @@ using namespace std;
// Iterates though all people in the AddressBook and prints info about them.
void ListPeople(const tutorial::AddressBook& address_book) {
- for (int i = 0; i < address_book.persons_size(); i++) {
- const tutorial::Person& person = address_book.persons(i);
+ for (int i = 0; i < address_book.people_size(); i++) {
+ const tutorial::Person& person = address_book.people(i);
cout << "Person ID: " << person.id() << endl;
cout << " Name: " << person.name() << endl;