dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
699 stars 1.54k forks source link

Incorrect Information in Barrier.AddParticipants(Int32) Method Exception Docs #10150

Open JackCoplandGranta opened 1 month ago

JackCoplandGranta commented 1 month ago

Type of issue

Other (describe below)

Description

The docs claim this method throws an ArgumentOutOfRangeException when "participantCount is less than 0." in actuality it throws this when participantCount is less than 1.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier.addparticipants?view=net-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading/Barrier.xml

Document Version Independent Id

940bac83-e82e-5a96-aecf-c2be9c712297

Article author

@dotnet-bot

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to this area: @dotnet/area-system-runtime