Skip to content

Commit

Permalink
Update query-methods-details.adoc
Browse files Browse the repository at this point in the history
Fix a typo: Priced => Product
  • Loading branch information
hosamaly authored Oct 7, 2024
1 parent e9ae6c7 commit 180bd98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Products implements Streamable<Product> { <2>
public MonetaryAmount getTotal() { <3>
return streamable.stream()
.map(Priced::getPrice)
.map(Product::getPrice)
.reduce(Money.of(0), MonetaryAmount::add);
}
Expand Down

0 comments on commit 180bd98

Please sign in to comment.