8000 Merge pull request #2281 from palanga/patch-1 · aresen/docs.scala-lang@7150146 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7150146

Browse files
authored
Merge pull request scala#2281 from palanga/patch-1
Update domain-modeling-fp.md
2 parents dbcc874 + 9bc5230 commit 7150146

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
@@ -357,7 +357,7 @@ val p2 = addTopping(p1, Onions)
357357
val p3 = updateCrustType(p2, Thick)
358358
val p4 = updateCrustSize(p3, Large)
359359

360-
println(p4.price) // prints 8.75
360+
println(price(p4)) // prints 8.75
361361
```
362362

363363
### Functional Objects

0 commit comments

Comments
 (0)
0