Skip to content

Commit f3162c8

Browse files
authored
Add spacing in SemaphoreSlim docs (#10060)
Adds a space after `Timeout.Infinite` member reference and before parentheses describing its value "(-1)". When rendered in IDEs this could cause confusion as it looked like a method call.
1 parent 8814311 commit f3162c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Threading/SemaphoreSlim.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ SemaphoreSlim.Release()
656656
<Parameter Name="millisecondsTimeout" Type="System.Int32" />
657657
</Parameters>
658658
<Docs>
659-
<param name="millisecondsTimeout">The number of milliseconds to wait, <see cref="F:System.Threading.Timeout.Infinite" />(-1) to wait indefinitely, or zero to test the state of the wait handle and return immediately.</param>
659+
<param name="millisecondsTimeout">The number of milliseconds to wait, <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely, or zero to test the state of the wait handle and return immediately.</param>
660660
<summary>Blocks the current thread until it can enter the <see cref="T:System.Threading.SemaphoreSlim" />, using a 32-bit signed integer that specifies the timeout.</summary>
661661
<returns>
662662
<see langword="true" /> if the current thread successfully entered the <see cref="T:System.Threading.SemaphoreSlim" />; otherwise, <see langword="false" />.</returns>
@@ -870,7 +870,7 @@ If a thread or task is blocked when calling <xref:System.Threading.SemaphoreSlim
870870
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
871871
</Parameters>
872872
<Docs>
873-
<param name="millisecondsTimeout">The number of milliseconds to wait, <see cref="F:System.Threading.Timeout.Infinite" />(-1) to wait indefinitely, or zero to test the state of the wait handle and return immediately.</param>
873+
<param name="millisecondsTimeout">The number of milliseconds to wait, <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely, or zero to test the state of the wait handle and return immediately.</param>
874874
<param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> to observe.</param>
875875
<summary>Blocks the current thread until it can enter the <see cref="T:System.Threading.SemaphoreSlim" />, using a 32-bit signed integer that specifies the timeout, while observing a <see cref="T:System.Threading.CancellationToken" />.</summary>
876876
<returns>

0 commit comments

Comments
 (0)