diff --git a/docs/README.md b/docs/README.md index 880ee2333d..f5d919076d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -207,8 +207,8 @@ Finds a task with given keywords. ``` Here are the matching tasks in your list: -1.[T][ ] prepare materials -2.[T][ ] prepare content +1. [T][ ] prepare materials +2. [T][ ] prepare content ``` Assuming the list has 3 tasks (`draw props`, `prepare materials`, `prepare content`), the tasks containing the word `pre` is returned. diff --git a/src/main/java/duke/command/FindCommand.java b/src/main/java/duke/command/FindCommand.java index f14aa14318..0a55e7f1bc 100644 --- a/src/main/java/duke/command/FindCommand.java +++ b/src/main/java/duke/command/FindCommand.java @@ -35,7 +35,7 @@ public void execute(TaskList tasks, Ui ui, Storage storage) { ui.printLine("Here are the matching tasks in your list:"); for (int i = 0; i < matchingTasks.size(); i++) { - String output = String.format("%d.%s", i + 1, matchingTasks.get(i)); + String output = String.format("%d. %s", i + 1, matchingTasks.get(i)); ui.printLine(output); } }