mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 20:49:49 +02:00
fix(expense tracker): logical error in description (#7720)
If we are referencing by id and not index then --id 1 would remove the first element making the summary 10 and not 20 Solution: delete the second element instead to make the summary add up correctly.
This commit is contained in:
committed by
GitHub
parent
322dea30d0
commit
684c103aa2
@@ -62,7 +62,7 @@ $ expense-tracker list
|
||||
$ expense-tracker summary
|
||||
# Total expenses: $30
|
||||
|
||||
$ expense-tracker delete --id 1
|
||||
$ expense-tracker delete --id 2
|
||||
# Expense deleted successfully
|
||||
|
||||
$ expense-tracker summary
|
||||
@@ -83,4 +83,4 @@ You can implement the application using any programming language of your choice.
|
||||
|
||||
<hr />
|
||||
|
||||
This project idea is a great way to practice your logic building skills and learn how to interact with the filesystem using a CLI application. It will also help you understand how to manage data and provide useful information to users in a structured way.
|
||||
This project idea is a great way to practice your logic building skills and learn how to interact with the filesystem using a CLI application. It will also help you understand how to manage data and provide useful information to users in a structured way.
|
||||
|
Reference in New Issue
Block a user