We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
optional_field
1 parent dfaebe9 commit f2761edCopy full SHA for f2761ed
src/gleam/dynamic/decode.gleam
@@ -542,7 +542,7 @@ pub fn field(
542
/// let decoder = {
543
/// use name <- decode.field("name", string)
544
/// use email <- decode.optional_field("email", "n/a", string)
545
-/// SignUp(name: name, email: email)
+/// decode.success(SignUp(name: name, email: email))
546
/// }
547
///
548
/// let result = decode.run(data, decoder)
0 commit comments