Skip to content

Commit 2cd2310

Browse files
authored
Merge pull request #2151 from Nicolapps/fix-domain-modeling-fp
Fix a typo in FP Modeling
2 parents e9cd74a + 6b4326a commit 2cd2310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/domain-modeling-fp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def toppingPrice(t: Topping): Double = t match
160160
case Cheese | Onions => 0.5
161161
case Pepperoni | BlackOlives | GreenOlives => 0.75
162162
```
163-
Similarly, since `toppingPrice` is an enumeration, we use pattern matching to distinguish between the different variants.
163+
Similarly, since `Topping` is an enumeration, we use pattern matching to distinguish between the different variants.
164164
Cheese and onions are priced at 50ct while the rest is priced at 75ct each.
165165
```scala
166166
def crustPrice(s: CrustSize, t: CrustType): Double =

0 commit comments

Comments
 (0)