Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGregory Bell <gregoryscottbell@gmail.com>2017-01-04 21:07:28 +0300
committerDan Moseley <danmose@microsoft.com>2017-01-04 21:07:28 +0300
commitfdc601af2749324a7565d7b5fb614de6350cb10c (patch)
treebd9270a83382ff3ad7ce5ba51adfb680c2e7e5a0 /src
parent7608aae7298173e73d0cdac95268f62f429e77ef (diff)
Fix XMLdoc for Vector<T> Inequality. (#14809)
* Fix XMLdoc for Vector<T> Inequality. The != operator claims that it "Returns a value that indicates whether any single pair of elements in the specified vectors is equal." which is a copy-paste error from Vector.EqualsAny<T>(). * Moved changes to tt file and changed text.
Diffstat (limited to 'src')
-rw-r--r--src/System.Numerics.Vectors/src/System/Numerics/Vector.cs5
-rw-r--r--src/System.Numerics.Vectors/src/System/Numerics/Vector.tt4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/System.Numerics.Vectors/src/System/Numerics/Vector.cs b/src/System.Numerics.Vectors/src/System/Numerics/Vector.cs
index ff31013a00..fc660810df 100644
--- a/src/System.Numerics.Vectors/src/System/Numerics/Vector.cs
+++ b/src/System.Numerics.Vectors/src/System/Numerics/Vector.cs
@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+using System.Diagnostics.Contracts;
using System.Globalization;
using System.Numerics.Hashing;
using System.Runtime.CompilerServices;
@@ -2752,11 +2753,11 @@ namespace System.Numerics
}
/// <summary>
- /// Returns a boolean indicating whether any single pair of elements in the given vectors are equal.
+ /// Returns a boolean indicating whether any single pair of elements in the given vectors are not equal.
/// </summary>
/// <param name="left">The first vector to compare.</param>
/// <param name="right">The second vector to compare.</param>
- /// <returns>True if any element pairs are equal; False if no element pairs are equal.</returns>
+ /// <returns>True if left and right are not equal; False otherwise.</returns>
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static bool operator !=(Vector<T> left, Vector<T> right)
{
diff --git a/src/System.Numerics.Vectors/src/System/Numerics/Vector.tt b/src/System.Numerics.Vectors/src/System/Numerics/Vector.tt
index 39911eb21f..55c32aac67 100644
--- a/src/System.Numerics.Vectors/src/System/Numerics/Vector.tt
+++ b/src/System.Numerics.Vectors/src/System/Numerics/Vector.tt
@@ -1005,11 +1005,11 @@ namespace System.Numerics
}
/// <summary>
- /// Returns a boolean indicating whether any single pair of elements in the given vectors are equal.
+ /// Returns a boolean indicating whether any single pair of elements in the given vectors are not equal.
/// </summary>
/// <param name="left">The first vector to compare.</param>
/// <param name="right">The second vector to compare.</param>
- /// <returns>True if any element pairs are equal; False if no element pairs are equal.</returns>
+ /// <returns>True if left and right are not equal; False otherwise.</returns>
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static bool operator !=(Vector<T> left, Vector<T> right)
{