comments and formatting
diff --git a/examples/add_person.dart b/examples/add_person.dart
index 7aaa079..a93ec60 100644
--- a/examples/add_person.dart
+++ b/examples/add_person.dart
@@ -4,7 +4,6 @@
// This function fills in a Person message based on user input.
Person promtForAddress() {
-
Person person = Person();
print('Enter person ID: ');
@@ -20,9 +19,9 @@
person.email = email;
}
- while(true) {
+ while (true) {
print('Enter a phone number (or leave blank to finish): ');
- String number = stdin. readLineSync();
+ String number = stdin.readLineSync();
if (number.isEmpty) break;
Person_PhoneNumber phoneNumber = Person_PhoneNumber();
@@ -31,7 +30,7 @@
print('Is this a mobile, home, or work phone? ');
String type = stdin.readLineSync();
- switch(type) {
+ switch (type) {
case 'mobile':
phoneNumber.type = Person_PhoneType.MOBILE;
break;
@@ -62,10 +61,10 @@
AddressBook addressBook;
if (!file.existsSync()) {
print('File not found. Creating new file.');
- addressBook = AddressBook();
+ addressBook = AddressBook();
} else {
addressBook = AddressBook.fromBuffer(file.readAsBytesSync());
}
addressBook.people.add(promtForAddress());
file.writeAsBytes(addressBook.writeToBuffer());
-}
\ No newline at end of file
+}