From 6dc7a93fba3f1fee0913efbe2889dc1e564f3ffc Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 16 Dec 2024 11:45:22 +0000 Subject: Fix documentation --- src/gleam/dynamic/decode.gleam | 4 ++-- 1 file 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") /// ``` /// -- cgit v1.2.3