diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector_1.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector_1.cs index 05eb1efcafd95..960bf2498338b 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector_1.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/Vector_1.cs @@ -476,12 +476,12 @@ public T this[int index] { for (int index = 0; index < Count; index++) { - if (Scalar.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) + if (!Scalar.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) { - return false; + return true; } } - return true; + return false; } /// Shifts each element of a vector left by the specified amount.