diff --git a/notes/Java 容器.md b/notes/Java 容器.md index a9125742..5868a4e5 100644 --- a/notes/Java 容器.md +++ b/notes/Java 容器.md @@ -131,7 +131,7 @@ if x.equals(y) && y.equals(z) { 多次调用 equals() 方法结果不变 ```java -x.equals(y) == x.equals(y) == x.equals(y) == x.equals(y); // true +x.equals(y) == x.equals(y); // true ``` **5. 与 null 的比较**