diff options
Diffstat (limited to 'mcs/class/referencesource/mscorlib/system/text/encoder.cs')
-rw-r--r-- | mcs/class/referencesource/mscorlib/system/text/encoder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/text/encoder.cs b/mcs/class/referencesource/mscorlib/system/text/encoder.cs index 55af2cb6fb0..04f3ac245a3 100644 --- a/mcs/class/referencesource/mscorlib/system/text/encoder.cs +++ b/mcs/class/referencesource/mscorlib/system/text/encoder.cs @@ -212,7 +212,7 @@ namespace System.Text // Do the work int result = GetBytes(arrChar, 0, charCount, arrByte, 0, flush); - // The only way this could fail is a + // The only way this could fail is a bug in GetBytes Contract.Assert(result <= byteCount, "Returned more bytes than we have space for"); // Copy the byte array |