From: Viktor Hofer Date: Fri, 16 Mar 2018 14:18:16 +0000 (+0100) Subject: Fix comment in IgnoreCase CompareInfo handling. X-Git-Tag: accepted/tizen/unified/20190422.045933~2625 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d99f32d3351310955d7d324fa80bf0b8b7657b1;p=platform%2Fupstream%2Fcoreclr.git Fix comment in IgnoreCase CompareInfo handling. --- diff --git a/src/mscorlib/shared/System/Globalization/CompareInfo.cs b/src/mscorlib/shared/System/Globalization/CompareInfo.cs index 4ef4aa8..f54ecd9 100644 --- a/src/mscorlib/shared/System/Globalization/CompareInfo.cs +++ b/src/mscorlib/shared/System/Globalization/CompareInfo.cs @@ -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.