Skip to content

Commit

Permalink
Merge pull request #31 from imclerran/update-doc-comments
Browse files Browse the repository at this point in the history
Update doc comments to reflect change from `Json.json` to `Json.utf8`
  • Loading branch information
lukewilliamboswell authored May 13, 2024
2 parents 766d82d + 73e604a commit 96c036f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/Json.roc
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
## result : Result Language _
## result =
## jsonStr
## |> Decode.fromBytes Json.json # returns `Ok {name : "Röc Lang"}`
## |> Decode.fromBytes Json.utf8 # returns `Ok {name : "Röc Lang"}`
##
## name =
## decodedValue <- Result.map result
##
## Encode.toBytes decodedValue.name Json.json
## Encode.toBytes decodedValue.name Json.utf8
##
## expect name == Ok (Str.toUtf8 "\"Röc Lang\"")
## ```
Expand Down

0 comments on commit 96c036f

Please sign in to comment.