Skip to content

Commit

Permalink
Update domain-modeling-fp.md
Browse files Browse the repository at this point in the history
Corrected the word "receiver" which was misspelt as "reciever"
  • Loading branch information
rohantheman authored Aug 20, 2024
1 parent 98bb817 commit b1cef55
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 b1cef55

Please sign in to comment.