Skip to content

Commit

Permalink
Update add_person.dart
Browse files Browse the repository at this point in the history
Fixed typo in a function name.
  • Loading branch information
Jonathan White authored Nov 21, 2018
1 parent 81c3e0c commit b017ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/add_person.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';
import 'dart_tutorial/addressbook.pb.dart';

// This function fills in a Person message based on user input.
Person promtForAddress() {
Person promptForAddress() {
Person person = Person();

print('Enter person ID: ');
Expand Down Expand Up @@ -65,6 +65,6 @@ main(List<String> arguments) {
} else {
addressBook = AddressBook.fromBuffer(file.readAsBytesSync());
}
addressBook.people.add(promtForAddress());
addressBook.people.add(promptForAddress());
file.writeAsBytes(addressBook.writeToBuffer());
}

0 comments on commit b017ac4

Please sign in to comment.