Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Dec 16, 2024
1 parent 5598ca9 commit c2efd32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gleam/dynamic/decode.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,11 @@ pub fn then(decoder: Decoder(a), next: fn(a) -> Decoder(b)) -> Decoder(b) {
/// # Examples
///
/// ```gleam
/// decode.one_of(decode.string, or: [
/// let decoder = decode.one_of(decode.string, or: [
/// decode.int |> decode.map(int.to_string),
/// decode.float |> decode.map(float.to_string),
/// ])
/// |> decode.run(dynamic.from(1000))
/// decode.run(dynamic.from(1000), decoder)
/// // -> Ok("1000")
/// ```
///
Expand Down

0 comments on commit c2efd32

Please sign in to comment.