Skip to content

Commit

Permalink
Fix typo on dg
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandong committed Apr 15, 2024
1 parent 25f303c commit b41e19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ The `DeleteMenuCommand` class which extends the `Command` abstract class will be

![DeleteMenuCommandModelDiagram](images/DeleteMenuSequenceDiagram-Model.png)

After parsing the `delete` command with menu prefix, the `LogicManager` will call the `Model#deleteProduct(id)` which calls `AddressBook#deleteProduct(id)`. The `deleteProduct` of `ProductMenu` will then be called, which deletes a product from the `ArrayList<Product` according to the specified `MENU_ID`.
After parsing the `delete` command with menu prefix, the `LogicManager` will call the `Model#deleteProduct(id)` which calls `AddressBook#deleteProduct(id)`. The `deleteProduct` of `ProductMenu` will then be called, which deletes a product from the `ArrayList<Product>` according to the specified `MENU_ID`.

`DeleteCommandParser` will construct the respective command based on the accompanying prefixes:
1. If `PREFIX_MENU`, a `DeleteMenuCommand` will be created.
Expand All @@ -236,7 +236,7 @@ The `EditMenuCommand` class which extends the `Command` abstract class will be e

![EditMenuCommandModelDiagram](images/EditMenuSequenceDiagram-Model.png)

After parsing the `edit` command with menu prefix, the `LogicManager` will call the `Model#editProduct(target, editedProduct)` which calls `AddressBook#editProduct(target, editedProduct)`. The `editProduct` of `ProductMenu` will then be called, which edits the product from the `ArrayList<Product` according to the specified `MENU_ID`.
After parsing the `edit` command with menu prefix, the `LogicManager` will call the `Model#editProduct(target, editedProduct)` which calls `AddressBook#editProduct(target, editedProduct)`. The `editProduct` of `ProductMenu` will then be called, which edits the product from the `ArrayList<Product>` according to the specified `MENU_ID`.

`EditCommandParser` will construct the respective command based on the accompanying prefixes:
1. If `PREFIX_MENU`, a `EditMenuCommand` will be created.
Expand Down

0 comments on commit b41e19e

Please sign in to comment.