From eca26d7fe03bd52fa0bafa244d43dee4b94d373c Mon Sep 17 00:00:00 2001 From: Ken Biondi Date: Mon, 17 Apr 2023 10:22:25 -0700 Subject: [PATCH] Fix typos in list.fsi --- src/FSharp.Core/list.fsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FSharp.Core/list.fsi b/src/FSharp.Core/list.fsi index cbeac5901b7..8b863776058 100644 --- a/src/FSharp.Core/list.fsi +++ b/src/FSharp.Core/list.fsi @@ -819,7 +819,7 @@ module List = /// match (input1, input2) with /// | Head, Head -> acc + 1 /// | Tails, Tails -> acc + 1 - /// | _ -> acc - 1) + /// | _ -> acc) /// /// Evaluates to 1. Note acc is a commonly used abbreviation for "accumulator". /// @@ -1208,7 +1208,7 @@ module List = /// let inputs1 = [ "a"; "b"; "c" ] /// let inputs2 = [ "banana"; "pear"; "apple" ] /// - /// (inputs1, inputs2) ||> List.iteri2 (fun i s1 s2 -> printfn "Index {i}: {s1} - {s2}") + /// (inputs1, inputs2) ||> List.iteri2 (fun i s1 s2 -> printfn "Index %d: %s - %s" i s1 s2) /// /// Evaluates to unit and prints /// @@ -1360,8 +1360,8 @@ module List = /// /// The list of transformed elements, and the final accumulated value. /// - /// - /// Accumulate the charges, and double them as well + /// Accumulate the charges, and double them as well + /// /// type Charge = /// | In of int /// | Out of int @@ -2584,7 +2584,7 @@ module List = /// let names = ["one"; "two"] /// let roman = ["I"; "II"] /// - /// Array.zip3 numbers names roman + /// List.zip3 numbers names roman /// /// Evaluates to [(1, "one", "I"); (2, "two", "II")]. ///