aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-01-09 22:35:07 +0000
committerLouis Pilfold <louis@lpil.uk>2022-01-09 22:35:07 +0000
commit535bf8d4057bc6d42537903e9cb2357fd2bfd52d (patch)
tree47cacdc23301417aa6892e2bc196416be1944a10
parent56cc2931b1549770174c1ee39b0423f77d129f13 (diff)
downloadgleam_json-535bf8d4057bc6d42537903e9cb2357fd2bfd52d.tar.gz
gleam_json-535bf8d4057bc6d42537903e9cb2357fd2bfd52d.zip
Off by one, oops
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8e6a35a..8d2068c 100644
--- a/README.md
+++ b/README.md
@@ -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),