Skip to content

Commit

Permalink
Fix incorrect docstring on List.EnsureCapacity (#95956)
Browse files Browse the repository at this point in the history
* Fix incorrect docstring on List.EnsureCapacity

* Fix typo

* Be less specific
  • Loading branch information
Smaug123 authored Dec 13, 2023
1 parent 1599605 commit 4b91f91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void CopyTo(T[] array, int arrayIndex)
/// <summary>
/// Ensures that the capacity of this list is at least the specified <paramref name="capacity"/>.
/// If the current capacity of the list is less than specified <paramref name="capacity"/>,
/// the capacity is increased by continuously twice current capacity until it is at least the specified <paramref name="capacity"/>.
/// the capacity is increased to at least <paramref name="capacity"/>.
/// </summary>
/// <param name="capacity">The minimum capacity to ensure.</param>
/// <returns>The new capacity of this list.</returns>
Expand Down

0 comments on commit 4b91f91

Please sign in to comment.