From 63e1384788c932a7975b132d74a9471954a25bf3 Mon Sep 17 00:00:00 2001 From: xhudik Date: Sat, 6 Mar 2021 14:33:38 +0100 Subject: [PATCH] reginald instead of not-defined p --- _overviews/scala3-book/fp-immutable-values.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala3-book/fp-immutable-values.md b/_overviews/scala3-book/fp-immutable-values.md index 5821201e3f..c855b35ea4 100644 --- a/_overviews/scala3-book/fp-immutable-values.md +++ b/_overviews/scala3-book/fp-immutable-values.md @@ -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 )