From 375c5b4c6cef1b3dae774f24ffb55f44ee2a6cc3 Mon Sep 17 00:00:00 2001 From: justinhoejj Date: Thu, 28 Oct 2021 23:42:22 +0800 Subject: [PATCH 1/2] Add notes for add command in UG --- docs/UserGuide.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index a9438560043..40872398890 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -115,13 +115,17 @@ A person can have any number of tags (including 0)
:bulb: **Tip:** -Format birthday as ddMMyyyy +Format birthday as ddMMyyyy.
**Sample Usage:** * `add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01` * `add n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison b/25121999 p/1234567 t/criminal` +Notes: +* Phone number must be unique. +* Birthdays are optional and can be added in future with `edit` command. +* Future dates as birthdays are not allowed. ### Listing all persons : `list` Shows a list of all persons in the address book. From 3fd7065a44667724d2cb3e1353c28042eb26d1f0 Mon Sep 17 00:00:00 2001 From: justinhoejj Date: Thu, 28 Oct 2021 23:51:37 +0800 Subject: [PATCH 2/2] Improve code quality. --- docs/UserGuide.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 40872398890..e0e534aec2a 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -118,14 +118,15 @@ A person can have any number of tags (including 0) Format birthday as ddMMyyyy. -**Sample Usage:** -* `add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01` -* `add n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison b/25121999 p/1234567 t/criminal` - Notes: * Phone number must be unique. * Birthdays are optional and can be added in future with `edit` command. * Future dates as birthdays are not allowed. + +**Sample Usage:** +* `add n/John Doe p/98765432 e/johnd@example.com a/John street, block 123, #01-01` +* `add n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison b/25121999 p/1234567 t/criminal` + ### Listing all persons : `list` Shows a list of all persons in the address book.