Skip to content

Commit

Permalink
minor doc changes to get the code referenced by the traverseResult tu…
Browse files Browse the repository at this point in the history
…torial working
  • Loading branch information
m-rinaldi committed Jul 18, 2024
1 parent 628032a commit e410b56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gitbook/result/map2.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ And an another function that converts a string to an integer:

```fsharp
// string -> Result<int, string>
let tryParseInt str =
let tryParseInt (str: string) =
match System.Int32.TryParse str with
| true, x -> Ok x
| false, _ ->
Expand Down
4 changes: 2 additions & 2 deletions gitbook/result/map3.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ And an another function that converts a string to an integer:

```fsharp
// string -> Result<int, string>
let tryParseInt str =
let tryParseInt (str: string) =
match System.Int32.TryParse str with
| true, x -> Ok x
| false, _ ->
Expand Down Expand Up @@ -66,7 +66,7 @@ type Tweet = private Tweet of string with
Error "Tweet shouldn't be empty"
elif tweet.Length > 280 then
Error "Tweet shouldn't contain more than 280 characters"
else Ok (Tweet x)
else Ok (Tweet tweet)
```

#### CreatePostRequest
Expand Down

0 comments on commit e410b56

Please sign in to comment.