Skip to content

Commit c2efd32

Browse files
committed
Fix documentation
1 parent 5598ca9 commit c2efd32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gleam/dynamic/decode.gleam

+2-2
Original file line numberDiff line numberDiff line change
@@ -902,11 +902,11 @@ pub fn then(decoder: Decoder(a), next: fn(a) -> Decoder(b)) -> Decoder(b) {
902902
/// # Examples
903903
///
904904
/// ```gleam
905-
/// decode.one_of(decode.string, or: [
905+
/// let decoder = decode.one_of(decode.string, or: [
906906
/// decode.int |> decode.map(int.to_string),
907907
/// decode.float |> decode.map(float.to_string),
908908
/// ])
909-
/// |> decode.run(dynamic.from(1000))
909+
/// decode.run(dynamic.from(1000), decoder)
910910
/// // -> Ok("1000")
911911
/// ```
912912
///

0 commit comments

Comments
 (0)