Skip to content

Commit 8760c07

Browse files
alvinjjulienrf
andauthored
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <[email protected]>
1 parent cf864be commit 8760c07

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
@@ -750,7 +750,7 @@ val p = Person("Reginald Kenneth Dwight", "Singer")
750750
// a good default toString method
751751
p // Person = Person(Reginald Kenneth Dwight,Singer)
752752

753-
// can access its fields, but they are immutable
753+
// can access its fields, which are immutable
754754
p.name // "Reginald Kenneth Dwight"
755755
p.name = "Joe" // error: can’t reassign a val field
756756

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

13151315

13161316

1317-

0 commit comments

Comments
 (0)