From b017ac4b87cecaf60ea93eaee5d71ca05251e3b4 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 20 Nov 2018 18:45:25 -0800 Subject: [PATCH] Update add_person.dart Fixed typo in a function name. --- examples/add_person.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/add_person.dart b/examples/add_person.dart index a93ec60540..bb38901a67 100644 --- a/examples/add_person.dart +++ b/examples/add_person.dart @@ -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 arguments) { } else { addressBook = AddressBook.fromBuffer(file.readAsBytesSync()); } - addressBook.people.add(promtForAddress()); + addressBook.people.add(promptForAddress()); file.writeAsBytes(addressBook.writeToBuffer()); }