Skip to content

Commit d6c5f37

Browse files
authored
Update Array.xml change ArgumentOutOfRangeException description for '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
1 parent b73ca7f commit d6c5f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/Array.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3772,7 +3772,7 @@
37723772

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

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

38683868
-or-
38693869

0 commit comments

Comments
 (0)