Fix typos in comment (#42367)
authorMartin Costello <martin@martincostello.com>
Mon, 21 Sep 2020 09:58:31 +0000 (10:58 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 09:58:31 +0000 (11:58 +0200)
Fix a handful of typos in a comment for AllocateUninitializedArray<T>().

src/mono/netcore/System.Private.CoreLib/src/System/GC.Mono.cs

index 448940d..f121f03 100644 (file)
@@ -268,8 +268,8 @@ namespace System
 
         public static T[] AllocateUninitializedArray<T>(int length, bool pinned = false)
         {
-            // Mono only does explicit zeroning if the array is to big for the nursery, but less than 1 Mb - 4 kb.
-            // If it is bigger than that, we grab memoroy directly from the OS which comes pre-zeroed.
+            // Mono only does explicit zeroing if the array is too big for the nursery, but less than 1 Mb - 4 kb.
+            // If it is bigger than that, we grab memory directly from the OS which comes pre-zeroed.
             // Experimentation shows that if we just skip the zeroing in this case, we do not save a measurable
             // amount of time. So we just allocate the normal way here.
             // Revist if we change LOS implementation.