From 5ca6673e98d0b6f80b50b5d9ba311bf08cbe1860 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Wed, 12 Jan 2022 20:47:33 +0000 Subject: Correct typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index d9e3753..455ce08 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ import myapp.{Cat} import gleam/json import gleam/dynamic.{field, list, int, string} -pub fn cat_from_json(json_string: String) -> Result { +pub fn cat_from_json(json_string: String) -> Result(Cat, json.DecodeError) { let cat_decoder = dynamic.decode3( Cat, field("name", of: string), -- cgit v1.2.3