Skip to content

Commit a164e23

Browse files
authored
Update parseHelper in F# tour to account for span overloads (#18689)
Fixes #18609
1 parent e675410 commit a164e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/fsharp/tour.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ module PatternMatching =
745745

746746
/// You can also use the shorthand function construct for pattern matching,
747747
/// which is useful when you're writing functions which make use of Partial Application.
748-
let private parseHelper f = f >> function
748+
let private parseHelper (f: string -> bool * 'T) = f >> function
749749
| (true, item) -> Some item
750750
| (false, _) -> None
751751

0 commit comments

Comments
 (0)