Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/release-notes/.FSharp.Core/11.0.100.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

* Fix `Array.exists2` documentation examples to use equal-length arrays; the previous examples would throw `ArgumentException` at runtime instead of returning the documented `false`/`true` values. ([PR #19672](https://github.com/dotnet/fsharp/pull/19672))
4 changes: 2 additions & 2 deletions src/FSharp.Core/array.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ module Array =
/// <example id="exists2-1">
/// <code lang="fsharp">
/// let inputs1 = [| 1; 2 |]
/// let inputs2 = [| 1; 2; 0 |]
/// let inputs2 = [| 1; 3 |]
///
/// (inputs1, inputs2) ||> Array.exists2 (fun a b -> a > b)
/// </code>
Expand All @@ -850,7 +850,7 @@ module Array =
/// <example id="exists2-2">
/// <code lang="fsharp">
/// let inputs1 = [| 1; 4 |]
/// let inputs2 = [| 1; 3; 5 |]
/// let inputs2 = [| 1; 3 |]
///
/// (inputs1, inputs2) ||> Array.exists2 (fun a b -> a > b)
/// </code>
Expand Down
Loading