From dacd67caed1704bacb6d2b91c0ccf1dc47cbafaa Mon Sep 17 00:00:00 2001 From: Frank Bolero <421+frankbolero@users.noreply.github.com> Date: Sat, 19 Sep 2020 13:16:34 +0200 Subject: [PATCH] SemaphoreSlim spelling corrections (#42451) * 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. --- .../System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs index 7b13c93..3d4a05c 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs @@ -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 -- 2.7.4