diff options
author | Akiomi Kamakura <akiomik@gmail.com> | 2023-11-05 20:22:57 +0900 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-11-05 11:29:12 +0000 |
commit | 56c8e4942c2da73e0468dea4bbe63d9edb981ba5 (patch) | |
tree | f38308b3acb99d4a723da7399b4d45e08bffc1c9 | |
parent | a6717d5dd00364fa7982132adeba6a56c9e3e2e9 (diff) | |
download | gleam_json-56c8e4942c2da73e0468dea4bbe63d9edb981ba5.tar.gz gleam_json-56c8e4942c2da73e0468dea4bbe63d9edb981ba5.zip |
Fix examples in json.gleam
-rw-r--r-- | src/gleam/json.gleam | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gleam/json.gleam b/src/gleam/json.gleam index 927a75e..71c685c 100644 --- a/src/gleam/json.gleam +++ b/src/gleam/json.gleam @@ -25,12 +25,12 @@ pub type DecodeError { /// ``` /// /// ```gleam -/// > decode("[", into: dynamic.list(of: dynamic.int)) +/// > decode("[", dynamic.list(of: dynamic.int)) /// Error(UnexpectedEndOfInput) /// ``` /// /// ```gleam -/// > decode("1", into: dynamic.string) +/// > decode("1", dynamic.string) /// Error(UnexpectedFormat([dynamic.DecodeError("String", "Int", [])])) /// ``` /// @@ -75,12 +75,12 @@ fn decode_string(a: String) -> Result(Dynamic, DecodeError) /// ``` /// /// ```gleam -/// > decode_bits(<<"[">>, into: dynamic.list(of: dynamic.int)) +/// > decode_bits(<<"[">>, dynamic.list(of: dynamic.int)) /// Error(UnexpectedEndOfInput) /// ``` /// /// ```gleam -/// > decode_bits("<<1">>, into: dynamic.string) +/// > decode_bits("<<1">>, dynamic.string) /// Error(UnexpectedFormat([dynamic.DecodeError("String", "Int", [])])) /// ``` /// |