Skip to content

Commit fe29ace

Browse files
kbiondiT-Gro
andauthored
Fix typos in list.fsi (#15104)
Co-authored-by: Tomas Grosup <[email protected]>
1 parent a5c976b commit fe29ace

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/FSharp.Core/list.fsi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ module List =
819819
/// match (input1, input2) with
820820
/// | Head, Head -> acc + 1
821821
/// | Tails, Tails -> acc + 1
822-
/// | _ -> acc - 1)
822+
/// | _ -> acc)
823823
/// </code>
824824
/// Evaluates to <c>1</c>. Note <c>acc</c> is a commonly used abbreviation for "accumulator".
825825
/// </example>
@@ -1208,7 +1208,7 @@ module List =
12081208
/// let inputs1 = [ "a"; "b"; "c" ]
12091209
/// let inputs2 = [ "banana"; "pear"; "apple" ]
12101210
///
1211-
/// (inputs1, inputs2) ||> List.iteri2 (fun i s1 s2 -> printfn "Index {i}: {s1} - {s2}")
1211+
/// (inputs1, inputs2) ||> List.iteri2 (fun i s1 s2 -> printfn "Index %d: %s - %s" i s1 s2)
12121212
/// </code>
12131213
/// Evaluates to <c>unit</c> and prints
12141214
/// <code lang="fsharp">
@@ -1360,8 +1360,8 @@ module List =
13601360
///
13611361
/// <returns>The list of transformed elements, and the final accumulated value.</returns>
13621362
///
1363-
/// <example id="mapfold-1">
1364-
/// <code lang="fsharp">Accumulate the charges, and double them as well
1363+
/// <example id="mapfold-1">Accumulate the charges, and double them as well
1364+
/// <code lang="fsharp">
13651365
/// type Charge =
13661366
/// | In of int
13671367
/// | Out of int
@@ -2584,7 +2584,7 @@ module List =
25842584
/// let names = ["one"; "two"]
25852585
/// let roman = ["I"; "II"]
25862586
///
2587-
/// Array.zip3 numbers names roman
2587+
/// List.zip3 numbers names roman
25882588
/// </code>
25892589
/// Evaluates to <c>[(1, "one", "I"); (2, "two", "II")]</c>.
25902590
/// </example>

0 commit comments

Comments
 (0)