Skip to content

Commit

Permalink
Fix dynamic.decode optional_field example
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorentin authored and lpil committed Dec 23, 2024
1 parent dfaebe9 commit f2761ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gleam/dynamic/decode.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ pub fn field(
/// let decoder = {
/// use name <- decode.field("name", string)
/// use email <- decode.optional_field("email", "n/a", string)
/// SignUp(name: name, email: email)
/// decode.success(SignUp(name: name, email: email))
/// }
///
/// let result = decode.run(data, decoder)
Expand Down

0 comments on commit f2761ed

Please sign in to comment.