diff options
author | Louis Pilfold <louis@lpil.uk> | 2022-01-09 22:35:07 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-01-09 22:35:07 +0000 |
commit | 535bf8d4057bc6d42537903e9cb2357fd2bfd52d (patch) | |
tree | 47cacdc23301417aa6892e2bc196416be1944a10 | |
parent | 56cc2931b1549770174c1ee39b0423f77d129f13 (diff) | |
download | gleam_json-535bf8d4057bc6d42537903e9cb2357fd2bfd52d.tar.gz gleam_json-535bf8d4057bc6d42537903e9cb2357fd2bfd52d.zip |
Off by one, oops
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ import gleam/dynamic.{field, list, int, string} import gleam/result pub fn cat_from_json(json_string: String) -> Result<Cat, json.DecodeError> { - let cat_decoder = dynamic.decode2( + let cat_decoder = dynamic.decode3( Cat, field("name", of: string), field("lives", of: int), |