Skip to content

Commit

Permalink
Fix spacing in find output
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanosync committed Sep 17, 2019
1 parent af88b95 commit d21947c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/duke/command/FindCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit d21947c

Please sign in to comment.