Unverified Commit b017ac4b authored by Jonathan White's avatar Jonathan White Committed by GitHub

Update add_person.dart

Fixed typo in a function name.
parent 81c3e0cf
......@@ -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: ');
......@@ -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());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment