Skip to content

Commit 6262ccb

Browse files
committed
Small change to fs script demo
1 parent f158cec commit 6262ccb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/fsharp-demo.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let formatLong o =
1717
let formatInput (o : options) =
1818
sprintf "--stringvalue: %s\n-i: %A\n-x: %b\nvalue: %s\n" o.stringValue (Array.ofSeq o.intSequence) o.boolValue (formatLong o.longValue)
1919

20-
let (|Success|Fail|) (result : ParserResult<'a>) =
20+
let inline (|Success|Fail|) (result : ParserResult<'a>) =
2121
match result with
2222
| :? Parsed<'a> as parsed -> Success(parsed.Value)
2323
| :? NotParsed<'a> as notParsed -> Fail(notParsed.Errors)

0 commit comments

Comments
 (0)