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.
pull/7724/head
ASIIMWE GRACE NOBLE 2 weeks ago committed by GitHub
parent 322dea30d0
commit 684c103aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/data/projects/expense-tracker.md

@ -62,7 +62,7 @@ $ expense-tracker list
$ expense-tracker summary $ expense-tracker summary
# Total expenses: $30 # Total expenses: $30
$ expense-tracker delete --id 1 $ expense-tracker delete --id 2
# Expense deleted successfully # Expense deleted successfully
$ expense-tracker summary $ expense-tracker summary

Loading…
Cancel
Save