From f2a005ad54ca0bf27b8bd115f70282fb7438ee73 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 7 Sep 2017 16:35:22 -0400 Subject: [PATCH] "Message" not in agreement with example The statement implies that "Message" was in the previous example, but the class in the example is "Book" --- _tour/case-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/case-classes.md b/_tour/case-classes.md index 301cceaa41..0768cec5af 100644 --- a/_tour/case-classes.md +++ b/_tour/case-classes.md @@ -23,7 +23,7 @@ case class Book(isbn: String) val frankenstein = Book("978-0486282114") ``` -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. +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. When you create a case class with parameters, the parameters are public `val`s. ```