aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-01-09 22:41:58 +0000
committerLouis Pilfold <louis@lpil.uk>2022-01-09 22:41:58 +0000
commit089f29823bc3ed25ae7b4fed64c88e981a872b64 (patch)
tree3db586f12de21d6231d65577bca3e020b1d817ed
parent535bf8d4057bc6d42537903e9cb2357fd2bfd52d (diff)
downloadgleam_json-089f29823bc3ed25ae7b4fed64c88e981a872b64.tar.gz
gleam_json-089f29823bc3ed25ae7b4fed64c88e981a872b64.zip
Remove unused imports from example
-rw-r--r--README.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8d2068c..5a3df4b 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,6 @@ gleam add gleam_json
```rust
import myapp.{Cat}
-import gleam/list
import gleam/json.{object, string, list, int, null}
pub fn cat_to_json(cat: Cat) -> String {
@@ -40,7 +39,6 @@ JSON is decoded into a `Dynamic` value which can be decoded using the
import myapp.{Cat}
import gleam/json
import gleam/dynamic.{field, list, int, string}
-import gleam/result
pub fn cat_from_json(json_string: String) -> Result<Cat, json.DecodeError> {
let cat_decoder = dynamic.decode3(