dotnet / dotnet/dotnet-api-docs

SemaphoreSlim Example output is wrong

Open
#9,879 3 comments 0 reactions 0 assignees View on GitHub
area-System.Threading.Tasks Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

https://learn.microsoft.com/en-us/dotnet/api/system.threading.semaphoreslim?view=net-8.0#examples

https://github.com/dotnet/dotnet-api-docs/blob/eb7588a564e5d717332afcac41a302ca785e708f/snippets/csharp/System.Threading/SemaphoreSlim/Overview/example.cs#L76

Should be

`// Task 3 releases the semaphore; previous count: 1.
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.