diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = { |