Skip to content

Commit 0e96164

Browse files
authored
Update collections EnsureCapacity docs (#9530)
1 parent 59ac3ec commit 0e96164

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

xml/System.Collections.Generic/HashSet`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@
11941194
</Parameters>
11951195
<Docs>
11961196
<param name="capacity">The minimum capacity to ensure.</param>
1197-
<summary>Ensures that this hash set can hold the specified number of elements without growing.</summary>
1197+
<summary>Ensures that this hash set can hold the specified number of elements without any further expansion of its backing storage.</summary>
11981198
<returns>The new capacity of this instance.</returns>
11991199
<remarks>To be added.</remarks>
12001200
<exception cref="T:System.ArgumentOutOfRangeException">

xml/System.Collections.Generic/List`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@
14951495
</Parameters>
14961496
<Docs>
14971497
<param name="capacity">The minimum capacity to ensure.</param>
1498-
<summary>Ensures that the capacity of this list is at least the specified <paramref name="capacity" />. If the current capacity is less than <paramref name="capacity" />, it is successively increased to twice the current capacity until it is at least the specified <paramref name="capacity" />.</summary>
1498+
<summary>Ensures that the capacity of this list is at least the specified <paramref name="capacity" />. If the current capacity is less than <paramref name="capacity" />, it is increased to at least the specified <paramref name="capacity" />.</summary>
14991499
<returns>The new capacity of this list.</returns>
15001500
<remarks>To be added.</remarks>
15011501
</Docs>

xml/System.Collections.Generic/Queue`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@
780780
</Parameters>
781781
<Docs>
782782
<param name="capacity">The minimum capacity to ensure.</param>
783-
<summary>Ensures that the capacity of this queue is at least the specified <paramref name="capacity" />. If the current capacity is less than <paramref name="capacity" />, it is successively increased to twice the current capacity until it is at least the specified <paramref name="capacity" />.</summary>
783+
<summary>Ensures that the capacity of this queue is at least the specified <paramref name="capacity" />. If the current capacity is less than <paramref name="capacity" />, it is increased to at least the specified <paramref name="capacity" />.</summary>
784784
<returns>The new capacity of this queue.</returns>
785785
<remarks>To be added.</remarks>
786786
</Docs>

xml/System.Collections.Generic/Stack`1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@
681681
</Parameters>
682682
<Docs>
683683
<param name="capacity">The minimum capacity to ensure.</param>
684-
<summary>Ensures that the capacity of this Stack is at least the specified <paramref name="capacity" />. If the current capacity is less than <paramref name="capacity" />, it is successively increased to twice the current capacity until it is at least the specified <paramref name="capacity" />.</summary>
684+
<summary>Ensures that the capacity of this Stack is at least the specified <paramref name="capacity" />. If the current capacity is less than <paramref name="capacity" />, it is increased to at least the specified <paramref name="capacity" />.</summary>
685685
<returns>The new capacity of this stack.</returns>
686686
<remarks>To be added.</remarks>
687687
</Docs>

0 commit comments

Comments
 (0)