From 09eee2ac5f14d0868233ad2251d6aedb5c187b59 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sat, 1 Jan 2022 16:28:46 +0000 Subject: Hack around GH syntax highlighting --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eb36512..f557e3c 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,6 @@ import gleam/json import gleam/dynamic import gleam/result -pub type MyError { - InvalidJson(json.DecodeError) - InvalidFormat(dynamic.DecodeError) -} - pub fn cat_from_json(json: String) -> Result { try data = json.decode(encoded) @@ -51,6 +46,11 @@ pub fn cat_from_json(json: String) -> Result { Ok(cat) } + +pub type MyError { + InvalidJson(json.DecodeError) + InvalidFormat(dynamic.DecodeError) +} ``` ## Installation -- cgit v1.2.3