Skip to content

Commit 842f785

Browse files
alvinjjulienrf
andcommitted
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <[email protected]>
1 parent 1b6f549 commit 842f785

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_overviews/overview/a-taste-of-scala.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ val p = Person("Reginald Kenneth Dwight", "Singer")
756756
// a good default toString method
757757
p // Person = Person(Reginald Kenneth Dwight,Singer)
758758

759-
// can access its fields, but they are immutable
759+
// can access its fields, which are immutable
760760
p.name // "Reginald Kenneth Dwight"
761761
p.name = "Joe" // error: can’t reassign a val field
762762

@@ -1315,4 +1315,3 @@ Scala has even more features that weren’t covered in this whirlwind tour. See
13151315

13161316

13171317

1318-

0 commit comments

Comments
 (0)