aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
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<Cat, json.DecodeError> {
+pub fn cat_from_json(json_string: String) -> Result(Cat, json.DecodeError) {
let cat_decoder = dynamic.decode3(
Cat,
field("name", of: string),