Skip to content

Commit 80121ff

Browse files
committed
fix(docs): Ok vs OK consistency
1 parent 7ae7bf5 commit 80121ff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

gitbook/asyncResult/foldResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is just a shortcut for `Async.map Result.fold`. See [Result.fold](../result
1616

1717
```fsharp
1818
type HttpResponse<'a, 'b> =
19-
| OK of 'a
19+
| Ok of 'a
2020
| InternalError of 'b
2121
2222
// CreatePostRequest -> Async<Result<PostId, exn>>

gitbook/cancellableTaskResult/foldResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is just a shortcut for `Task.map Result.fold`. See [Result.fold](../result/
1616

1717
```fsharp
1818
type HttpResponse<'a, 'b> =
19-
| OK of 'a
19+
| Ok of 'a
2020
| InternalError of 'b
2121
2222
// CreatePostRequest -> CancellableTask<Result<PostId, exn>>

gitbook/jobResult/foldResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is just a shortcut for `Job.map Result.fold`. See [Result.fold](../result/f
1616

1717
```fsharp
1818
type HttpResponse<'a, 'b> =
19-
| OK of 'a
19+
| Ok of 'a
2020
| InternalError of 'b
2121
2222
// CreatePostRequest -> Job<Result<PostId, exn>>

gitbook/result/fold.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ And the following fake HTTP response type:
4242

4343
```fsharp
4444
type HttpResponse<'a, 'b> =
45-
| OK of 'a
45+
| Ok of 'a
4646
| BadRequest of 'b
4747
```
4848

@@ -53,7 +53,7 @@ Then using `Result.fold`, we can do the following
5353
let handler httpRequest =
5454
// reading the input from the HTTP request
5555
let inputStr = httpRequest ...
56-
inputStr |> tryParseInt |> Result.fold OK BadRequest
56+
inputStr |> tryParseInt |> Result.fold Ok BadRequest
5757
```
5858

5959

gitbook/taskResult/foldResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is just a shortcut for `Task.map Result.fold`. See [Result.fold](../result/
1616

1717
```fsharp
1818
type HttpResponse<'a, 'b> =
19-
| OK of 'a
19+
| Ok of 'a
2020
| InternalError of 'b
2121
2222
// CreatePostRequest -> Task<Result<PostId, exn>>

0 commit comments

Comments
 (0)