Skip to content

Commit d12b75f

Browse files
authored
Update README.md
1 parent 0b2ae62 commit d12b75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ For example, this is how the existing `alias` and `desc` functions were created:
9999

100100
You could just as easily create a custom `Input.validateFileExists` function:
101101
```fsharp
102-
let validateFileExists (input: ActionInput<'T>) =
102+
let validateFileExists (input: ActionInput<System.IO.FileInfo>) =
103103
input
104-
|> validate (fun file ->
104+
|> Input.validate (fun file ->
105105
if file.Exists then Ok ()
106106
else Error $"File '{file.FullName}' does not exist."
107107
)

0 commit comments

Comments
 (0)