Skip to content

Commit d8a2d7a

Browse files
benluobishabosha
andauthored
Update _overviews/scala3-book/taste-modeling.md
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
1 parent 0f31b08 commit d8a2d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/taste-modeling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Person(var firstName: String, var lastName: String) {
145145
def printFullName() = println(s"$firstName $lastName")
146146
}
147147

148-
val p = Person("John", "Stephens")
148+
val p = new Person("John", "Stephens")
149149
println(p.firstName) // "John"
150150
p.lastName = "Legend"
151151
p.printFullName() // "John Legend"

0 commit comments

Comments
 (0)