Skip to content

Commit 87b9ba4

Browse files
jcorentinlpil
authored andcommitted
Fix dynamic/decode new_primitive_decoder example
1 parent f2761ed commit 87b9ba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gleam/dynamic/decode.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,9 +975,9 @@ pub fn failure(zero: a, expected: String) -> Decoder(a) {
975975
/// pub fn string_decoder() -> decode.Decoder(String) {
976976
/// let default = ""
977977
/// decode.new_primitive_decoder("String", fn(data) {
978-
/// case dynamic.string {
978+
/// case dynamic.string(data) {
979979
/// Ok(x) -> Ok(x)
980-
/// Error(x) -> Error(default)
980+
/// Error(_) -> Error(default)
981981
/// }
982982
/// })
983983
/// }

0 commit comments

Comments
 (0)