Skip to content

Commit 7c05f3a

Browse files
committed
Correct example
1 parent 3d15571 commit 7c05f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gleam/dynamic/decode.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ fn run_decoders(
992992
/// The second parameter is the name of the type that has failed to decode.
993993
///
994994
/// ```gleam
995-
/// decode.failure("User", User(name: "", score: 0, tags: []))
995+
/// decode.failure(User(name: "", score: 0, tags: []), expected: "User")
996996
/// ```
997997
///
998998
pub fn failure(placeholder: a, expected name: String) -> Decoder(a) {

0 commit comments

Comments
 (0)