Skip to content

Commit

Permalink
Melange v3 long-lived branch
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Dec 1, 2023
1 parent 9f29577 commit 3bb1003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/encode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let _ =
(* prints ["foo", "bar"] *)
let _ =
[| "foo"; "bar" |]
|> Js.Array.map Json.Encode.string
|> Js.Array.map ~f:Json.Encode.string
|> Json.Encode.jsonArray
|> Json.stringify
|> Js.log
Expand Down Expand Up @@ -63,4 +63,4 @@ let data = {
let _ =
data
|> Encode.line
|> Js.log
|> Js.log
2 changes: 1 addition & 1 deletion src/Json_decode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ let oneOf decoders json =
match decoders with
| [] ->
let formattedErrors =
"\n- " ^ Js.Array.joinWith "\n- " (Array.of_list (List.rev errors))
"\n- " ^ Js.Array.join ~sep:"\n- " (Array.of_list (List.rev errors))
in
raise
@@ DecodeError
Expand Down

0 comments on commit 3bb1003

Please sign in to comment.