diff options
Diffstat (limited to '07-classes-and-objects.md')
-rw-r--r-- | 07-classes-and-objects.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/07-classes-and-objects.md b/07-classes-and-objects.md index 617de328b2..139599b7ef 100644 --- a/07-classes-and-objects.md +++ b/07-classes-and-objects.md @@ -915,7 +915,7 @@ class different from `AnyRef`. In particular: - Method `equals: (Any)Boolean` is structural equality, where two instances are equal if they both belong to the case class in question and they - have equal (with respect to `equals`) constructor arguments. + have equal (with respect to `equals`) constructor arguments (restricted to the class's _elements_, i.e., the first parameter section). - Method `hashCode: Int` computes a hash-code. If the hashCode methods of the data structure members map equal (with respect to equals) values to equal hash-codes, then the case class hashCode method does |