Skip to content

Commit

Permalink
Merge pull request #3060 from rohantheman/patch-1
Browse files Browse the repository at this point in the history
Update domain-modeling-fp.md
  • Loading branch information
Philippus authored Aug 20, 2024
2 parents 98bb817 + b1cef55 commit d5e421a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _overviews/scala3-book/domain-modeling-fp.md
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ extension (p: Pizza)
p.copy(crustType = ct)
```
In the above code, we define the different methods on pizzas as _extension methods_.
With `extension (p: Pizza)` we say that we want to make the methods available on instances of `Pizza`. The reciever
With `extension (p: Pizza)` we say that we want to make the methods available on instances of `Pizza`. The receiver
in this case is `p`.

{% endtab %}
Expand Down

0 comments on commit d5e421a

Please sign in to comment.