diff --git a/concurrency.md b/concurrency.md index a853abd..78d3db7 100644 --- a/concurrency.md +++ b/concurrency.md @@ -908,7 +908,7 @@ class NonBlockingArrayList { if (item == null) { needsModification = content[index] != null; } else { - needsModification = item.equals(content[index]); + needsModification = !item.equals(content[index]); } } if (needsModification) {