diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-12-16 11:45:22 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-12-22 10:56:21 +0000 |
commit | 6dc7a93fba3f1fee0913efbe2889dc1e564f3ffc (patch) | |
tree | b07194fa1708c89b47dd5f5f73980a9cbb771d9d | |
parent | d452f95871e847b656b48b654c6d3e499f8452b3 (diff) | |
download | gleam_stdlib-6dc7a93fba3f1fee0913efbe2889dc1e564f3ffc.tar.gz gleam_stdlib-6dc7a93fba3f1fee0913efbe2889dc1e564f3ffc.zip |
Fix documentation
-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") /// ``` /// |