Skip to content

Commit fcbb431

Browse files
authored
Merge pull request #184 from sideeffffect/patch-1
Fix choice2s
2 parents 5b222ef + 5fea370 commit fcbb431

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FSharpx.Collections/Collections.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ module Seq =
270270
/// Extracts from a seq of Choice all the Choice2Of2 elements. All the Choice2Of2 elements are extracted in order.
271271
let inline choice2s xs =
272272
let inline chooser a = match a with
273-
| Choice1Of2 x -> Some x
273+
| Choice2Of2 x -> Some x
274274
| _ -> None
275275
Seq.choose chooser xs
276276

@@ -365,7 +365,7 @@ module Array =
365365
/// Extracts from an array of Choice all the Choice2Of2 elements. All the Choice2Of2 elements are extracted in order.
366366
let inline choice2s xs =
367367
let inline chooser a = match a with
368-
| Choice1Of2 x -> Some x
368+
| Choice2Of2 x -> Some x
369369
| _ -> None
370370
Array.choose chooser xs
371371

@@ -499,7 +499,7 @@ module List =
499499
/// Extracts from a list of Choice all the Choice2Of2 elements. All the Choice2Of2 elements are extracted in order.
500500
let inline choice2s xs =
501501
let inline chooser a = match a with
502-
| Choice1Of2 x -> Some x
502+
| Choice2Of2 x -> Some x
503503
| _ -> None
504504
List.choose chooser xs
505505

0 commit comments

Comments
 (0)