Update AsyncMethodBuilder.cs (dotnet/coreclr#19909)
authorNick Kotov <dedoktor93@gmail.com>
Wed, 12 Sep 2018 14:14:14 +0000 (17:14 +0300)
committerJan Kotas <jkotas@microsoft.com>
Wed, 12 Sep 2018 14:14:14 +0000 (07:14 -0700)
Changed commentary for range of AsyncCache Tasks with Int32 type.

Commit migrated from https://github.com/dotnet/coreclr/commit/598fca6348cbedc9cadb92aabf00b0f6f181bf83

src/coreclr/src/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilder.cs

index 201389d..18888f9 100644 (file)
@@ -805,7 +805,7 @@ namespace System.Runtime.CompilerServices
                     Task<bool> task = value ? AsyncTaskCache.TrueTask : AsyncTaskCache.FalseTask;
                     return Unsafe.As<Task<TResult>>(task); // UnsafeCast avoids type check we know will succeed
                 }
-                // For Int32, we cache a range of common values, e.g. [-1,4).
+                // For Int32, we cache a range of common values, e.g. [-1,9).
                 else if (typeof(TResult) == typeof(int))
                 {
                     // Compare to constants to avoid static field access if outside of cached range.