Skip to content

Commit a5d4d3c

Browse files
committed
Update
1 parent 79f19f3 commit a5d4d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DesignPatterns/AppleStoreVisitor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
- Discount percentages can vary at any point, and additional discount types may be added in the future.
2626

27-
- We would like a solution that avoids modifying the product objects directly every time a new discount type is added, or the discount percentage changes.
27+
- We would like to avoid the problem of modifying the product objects directly every time a new discount type is added, or the discount percentage changes.
2828

2929
- The visitor pattern will allow us to separate discount types, and vary their discount percentages, without modifying the product classes, satifying the open/closed principle.
3030

0 commit comments

Comments
 (0)