Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _overviews/scala3-book/fp-immutable-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ val reginald = Person("Reginald", "Dwight")
Then, when you need to make a change to the data, you use the `copy` method that comes with a `case` class to “update the data as you make a copy,” like this:

```scala
val elton = p.copy(
val elton = reginald.copy(
firstName = "Elton", // update the first name
lastName = "John" // update the last name
)
Expand Down