From 6b4326aab84389d9dff77bcf1751c58715ede2d6 Mon Sep 17 00:00:00 2001 From: Nicolas Ettlin Date: Sun, 8 Aug 2021 17:25:09 +0200 Subject: [PATCH] Fix a typo in FP Modeling --- _overviews/scala3-book/domain-modeling-fp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala3-book/domain-modeling-fp.md b/_overviews/scala3-book/domain-modeling-fp.md index 31e5d19008..98bf4096ad 100644 --- a/_overviews/scala3-book/domain-modeling-fp.md +++ b/_overviews/scala3-book/domain-modeling-fp.md @@ -160,7 +160,7 @@ def toppingPrice(t: Topping): Double = t match case Cheese | Onions => 0.5 case Pepperoni | BlackOlives | GreenOlives => 0.75 ``` -Similarly, since `toppingPrice` is an enumeration, we use pattern matching to distinguish between the different variants. +Similarly, since `Topping` is an enumeration, we use pattern matching to distinguish between the different variants. Cheese and onions are priced at 50ct while the rest is priced at 75ct each. ```scala def crustPrice(s: CrustSize, t: CrustType): Double =