diff options
Diffstat (limited to 'mcs/class/referencesource/mscorlib/system/text/decoder.cs')
-rw-r--r-- | mcs/class/referencesource/mscorlib/system/text/decoder.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/text/decoder.cs b/mcs/class/referencesource/mscorlib/system/text/decoder.cs index 28ea64f9361..8a5e8085314 100644 --- a/mcs/class/referencesource/mscorlib/system/text/decoder.cs +++ b/mcs/class/referencesource/mscorlib/system/text/decoder.cs @@ -219,7 +219,7 @@ namespace System.Text // Do the work int result = GetChars(arrByte, 0, byteCount, arrChar, 0, flush); - // The only way this could fail is a + // The only way this could fail is a bug in GetChars Contract.Assert(result <= charCount, "Returned more chars than we have space for"); // Copy the char array @@ -231,7 +231,7 @@ namespace System.Text charCount = result; // We check both result and charCount so that we don't accidentally overrun - // our pointer buffer just because of any GetChars + // our pointer buffer just because of any GetChars bug. for (index = 0; index < charCount; index++) chars[index] = arrChar[index]; |