Skip to content

Commit f2a005a

Browse files
authored
"Message" not in agreement with example
The statement implies that "Message" was in the previous example, but the class in the example is "Book"
1 parent 6879211 commit f2a005a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/case-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ case class Book(isbn: String)
2323
2424
val frankenstein = Book("978-0486282114")
2525
```
26-
Notice how the keyword `new` was not used to instantiate the `Message` case class. This is because case classes have an `apply` method by default which takes care of object construction.
26+
Notice how the keyword `new` was not used to instantiate the `Book` case class. This is because case classes have an `apply` method by default which takes care of object construction.
2727

2828
When you create a case class with parameters, the parameters are public `val`s.
2929
```

0 commit comments

Comments
 (0)