Skip to content

Commit f9aea4a

Browse files
dorialanlpil
authored andcommitted
Fix typo in documentation
Change trying to decode a float as an int
1 parent 87b9ba4 commit f9aea4a

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
@@ -69,7 +69,7 @@
6969
//// // Data:
7070
//// // 12.45
7171
////
72-
//// let result = decode.run(data, decode.optional(decode.int))
72+
//// let result = decode.run(data, decode.optional(decode.float))
7373
//// assert result == Ok(option.Some(12.45))
7474
//// ```
7575
//// ```gleam

0 commit comments

Comments
 (0)