SemaphoreSlim spelling corrections (#42451)
authorFrank Bolero <421+frankbolero@users.noreply.github.com>
Sat, 19 Sep 2020 11:16:34 +0000 (13:16 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Sep 2020 11:16:34 +0000 (07:16 -0400)
* Fixes comment spelling errors in SemaphoreSlim.cs

Words "increments" and "exceeded" where incorrectly spelled.

* Text change for clarity

Changed maxi to maximum to align with the rest of the comments
and variables in the file.

src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs

index 7b13c93..3d4a05c 100644 (file)
@@ -27,13 +27,13 @@ namespace System.Threading
     {
         #region Private Fields
 
-        // The semaphore count, initialized in the constructor to the initial value, every release call incremetns it
+        // The semaphore count, initialized in the constructor to the initial value, every release call increments it
         // and every wait call decrements it as long as its value is positive otherwise the wait will block.
         // Its value must be between the maximum semaphore value and zero
         private volatile int m_currentCount;
 
         // The maximum semaphore value, it is initialized to Int.MaxValue if the client didn't specify it. it is used
-        // to check if the count excceeded the maxi value or not.
+        // to check if the count exceeded the maximum value or not.
         private readonly int m_maxCount;
 
         // The number of synchronously waiting threads, it is set to zero in the constructor and increments before blocking the