Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 30d4f01

Browse files
committed
Update scaladoc for Any.scala#equals()
The transitive requirement for `Any` shouldn't mention `AnyRef`
1 parent 52fde52 commit 30d4f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library-aux/scala/Any.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class Any {
3838
* - It is reflexive: for any instance `x` of type `Any`, `x.equals(x)` should return `true`.
3939
* - It is symmetric: for any instances `x` and `y` of type `Any`, `x.equals(y)` should return `true` if and
4040
* only if `y.equals(x)` returns `true`.
41-
* - It is transitive: for any instances `x`, `y`, and `z` of type `AnyRef` if `x.equals(y)` returns `true` and
41+
* - It is transitive: for any instances `x`, `y`, and `z` of type `Any` if `x.equals(y)` returns `true` and
4242
* `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
4343
*
4444
* If you override this method, you should verify that your implementation remains an equivalence relation.

0 commit comments

Comments
 (0)