From 1cd61df8df9cbf2074222ca686497a8364b2ec5f Mon Sep 17 00:00:00 2001 From: zmlapo Date: Sat, 4 May 2024 12:25:41 -0400 Subject: [PATCH] Fix System.Threading/SemaphoreSlim/Overview/example.cs Count incorrectly showed 0 --- .../csharp/System.Threading/SemaphoreSlim/Overview/example.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs b/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs index 76cc50540dc..d146d709fbc 100644 --- a/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs +++ b/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs @@ -73,7 +73,7 @@ public static void Main() // Task 4 releases the semaphore; previous count: 0. // Task 2 enters the semaphore. // Task 1 releases the semaphore; previous count: 0. -// Task 3 releases the semaphore; previous count: 0. +// Task 3 releases the semaphore; previous count: 1. // Task 5 enters the semaphore. // Task 2 releases the semaphore; previous count: 1. // Task 5 releases the semaphore; previous count: 2.