Fix comment in IgnoreCase CompareInfo handling.
authorViktor Hofer <viktor.hofer@microsoft.com>
Fri, 16 Mar 2018 14:18:16 +0000 (15:18 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Mar 2018 14:18:16 +0000 (15:18 +0100)
src/mscorlib/shared/System/Globalization/CompareInfo.cs

index 4ef4aa8..f54ecd9 100644 (file)
@@ -1236,7 +1236,7 @@ namespace System.Globalization
 
             int charsWritten = source.AsSpan().ToUpperInvariant(span);
 
-            // Slice the array to the input size as we could have gotten a larger array from the ArrayPool.
+            // Slice the array to the size returned by ToUpperInvariant.
             int hash = Marvin.ComputeHash32(span.Slice(0, charsWritten).AsBytes(), Marvin.DefaultSeed);
 
             // Return the borrowed array if necessary.