Skip to content

Commit

Permalink
Update Array.xml change ArgumentOutOfRangeException description for '…
Browse files Browse the repository at this point in the history
…startIndex' parameter on FindIndex methods

Changed it to match String.Substring, because the behavior is identical (and original description is arguably wrong or hard to understand).

Fixes: dotnet#9719
  • Loading branch information
Fast-Nick committed Mar 14, 2024
1 parent b73ca7f commit d6c5f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xml/System/Array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3772,7 +3772,7 @@

<paramref name="match" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="startIndex" /> is outside the range of valid indexes for <paramref name="array" />.</exception>
<paramref name="startIndex" /> is less than zero or greater than the length of the <paramref name="array" />.</exception>
<altmember cref="M:System.Array.Exists``1(``0[],System.Predicate{``0})" />
<altmember cref="M:System.Array.Find``1(``0[],System.Predicate{``0})" />
<altmember cref="M:System.Array.FindLast``1(``0[],System.Predicate{``0})" />
Expand Down Expand Up @@ -3863,7 +3863,7 @@

<paramref name="match" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="startIndex" /> is outside the range of valid indexes for <paramref name="array" />.
<paramref name="startIndex" /> is less than zero or greater than the length of the <paramref name="array" />.

-or-

Expand Down

0 comments on commit d6c5f37

Please sign in to comment.