diff options
-rw-r--r-- | src/gleam/dynamic/decode.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/dynamic/decode.gleam b/src/gleam/dynamic/decode.gleam index f9c98c6..42755d5 100644 --- a/src/gleam/dynamic/decode.gleam +++ b/src/gleam/dynamic/decode.gleam @@ -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") /// ``` /// |