diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2015-07-20 15:24:08 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2015-07-20 15:24:08 -0700 |
commit | b0e5ba697eb281b4ea9e53e1dc9f5ebeccf28f9a (patch) | |
tree | 264a596dcc4d8fe77613720934f111257a349981 /examples/list_people.cc | |
parent | 359d32d4f711b7f8f774a1ceaa3ad55aa13167cf (diff) | |
download | protobuf-b0e5ba697eb281b4ea9e53e1dc9f5ebeccf28f9a.tar.gz protobuf-b0e5ba697eb281b4ea9e53e1dc9f5ebeccf28f9a.tar.bz2 protobuf-b0e5ba697eb281b4ea9e53e1dc9f5ebeccf28f9a.zip |
rename persons to people
Diffstat (limited to 'examples/list_people.cc')
-rw-r--r-- | examples/list_people.cc | 4 |
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; |