diff --git a/docs/release-notes/.FSharp.Core/11.0.100.md b/docs/release-notes/.FSharp.Core/11.0.100.md new file mode 100644 index 0000000000..fae6ac213e --- /dev/null +++ b/docs/release-notes/.FSharp.Core/11.0.100.md @@ -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)) diff --git a/src/FSharp.Core/array.fsi b/src/FSharp.Core/array.fsi index 503e3ee690..9d5ae1c074 100644 --- a/src/FSharp.Core/array.fsi +++ b/src/FSharp.Core/array.fsi @@ -840,7 +840,7 @@ module Array = /// /// /// let inputs1 = [| 1; 2 |] - /// let inputs2 = [| 1; 2; 0 |] + /// let inputs2 = [| 1; 3 |] /// /// (inputs1, inputs2) ||> Array.exists2 (fun a b -> a > b) /// @@ -850,7 +850,7 @@ module Array = /// /// /// let inputs1 = [| 1; 4 |] - /// let inputs2 = [| 1; 3; 5 |] + /// let inputs2 = [| 1; 3 |] /// /// (inputs1, inputs2) ||> Array.exists2 (fun a b -> a > b) ///