aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index f557e3c..2961785 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ import gleam/result
pub fn cat_from_json(json: String) -> Result<Cat, MyError> {
try data =
json.decode(encoded)
- |> result.put_error(InvalidJson)
+ |> result.map_error(InvalidJson)
let data = dynamic.from(data)
try cat = {