Skip to content

Commit

Permalink
fix code typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
benbellick committed Dec 19, 2024
1 parent 166b5ca commit a5abf1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type bar = Int of int | String of string [@@deriving decoders]
After doing this, you will have available in this module a value `bar_decoder` of type `bar D.decoder`. Then you'll be able to use this decoder freely, e.g.:
```ocaml
let () = assert (
match D.decode_string my_basic_cstr_decoder {|{"Int": [10]}|} with
match D.decode_string bar_decoder {|{"Int": 10}|} with
| Ok b -> b = Int 10
| Error _ -> false
)
Expand Down

0 comments on commit a5abf1c

Please sign in to comment.