Commit de1f400
Fix Array.exists2 XML doc examples to use equal-length arrays (#19672)
* Fix Array.exists2 XML doc examples to use equal-length arrays
Both examples used arrays of different lengths (2 vs 3 elements),
which would cause ArgumentException at runtime. The documented
'Evaluates to false/true' results were therefore incorrect.
Fixed by using equal-length input arrays that produce the stated results:
- inputs2 = [| 1; 3 |] with inputs1 = [| 1; 2 |] evaluates to false (neither 1>1 nor 2>3)
- inputs2 = [| 1; 3 |] with inputs1 = [| 1; 4 |] evaluates to true (4>3)
* Add release notes for Array.exists2 doc fix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f03143a commit de1f400
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
| 853 | + | |
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| |||
0 commit comments