Correct comments on Array sorting methods
authorMatt <mmartell@15J8NM1.mi.corp.rockfin.com>
Tue, 20 Oct 2015 13:50:54 +0000 (09:50 -0400)
committerMatt <mmartell@15J8NM1.mi.corp.rockfin.com>
Tue, 20 Oct 2015 13:50:54 +0000 (09:50 -0400)
Changed "recrusively" to "recursively" and "subtrack" to "subtract".

https://github.com/dotnet/coreclr/issues/1801

Commit migrated from https://github.com/dotnet/coreclr/commit/8e1c0b305729f04ef25eb422e73625688db3a0d7

src/coreclr/src/mscorlib/src/System/Array.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/ArraySortHelper.cs

index 30b0654..9ace3f2 100644 (file)
@@ -2047,7 +2047,7 @@ namespace System {
                     } while (i <= j);
 
                     // The next iteration of the while loop is to "recursively" sort the larger half of the array and the
-                    // following calls recrusively sort the smaller half.  So we subtrack one from depthLimit here so
+                    // following calls recursively sort the smaller half.  So we subtract one from depthLimit here so
                     // both sorts see the new value.
                     depthLimit--;
 
@@ -2364,7 +2364,7 @@ namespace System {
                     } while (i <= j);
 
                     // The next iteration of the while loop is to "recursively" sort the larger half of the array and the
-                    // following calls recrusively sort the smaller half.  So we subtrack one from depthLimit here so
+                    // following calls recursively sort the smaller half.  So we subtract one from depthLimit here so
                     // both sorts see the new value.
                     depthLimit--;
 
index d1d448c..94c0652 100644 (file)
@@ -270,7 +270,7 @@ namespace System.Collections.Generic
                 } while (i <= j);
 
                 // The next iteration of the while loop is to "recursively" sort the larger half of the array and the
-                // following calls recrusively sort the smaller half.  So we subtrack one from depthLimit here so
+                // following calls recursively sort the smaller half.  So we subtract one from depthLimit here so
                 // both sorts see the new value.
                 depthLimit--;
 
@@ -671,7 +671,7 @@ namespace System.Collections.Generic
                 } while (i <= j);
 
                 // The next iteration of the while loop is to "recursively" sort the larger half of the array and the
-                // following calls recrusively sort the smaller half.  So we subtrack one from depthLimit here so
+                // following calls recursively sort the smaller half.  So we subtract one from depthLimit here so
                 // both sorts see the new value.
                 depthLimit--;
 
@@ -1025,7 +1025,7 @@ namespace System.Collections.Generic
                 } while (i <= j);
 
                 // The next iteration of the while loop is to "recursively" sort the larger half of the array and the
-                // following calls recrusively sort the smaller half.  So we subtrack one from depthLimit here so
+                // following calls recursively sort the smaller half.  So we subtract one from depthLimit here so
                 // both sorts see the new value.
                 depthLimit--;
 
@@ -1382,7 +1382,7 @@ namespace System.Collections.Generic
                 } while (i <= j);
 
                 // The next iteration of the while loop is to "recursively" sort the larger half of the array and the
-                // following calls recrusively sort the smaller half.  So we subtrack one from depthLimit here so
+                // following calls recursively sort the smaller half.  So we subtract one from depthLimit here so
                 // both sorts see the new value.
                 depthLimit--;