aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Cavalieri <giacomo.cavalieri@icloud.com>2023-04-19 10:28:58 +0200
committerLouis Pilfold <louis@lpil.uk>2023-04-20 17:07:18 +0100
commit75dc802dda8c8629b08d0e8317f39ab47aaadb0e (patch)
tree71dff289603ce97a27d37a4140c848f5a39c0217
parent5cd9a91c87e8f7867e45dd02f8ad6c262690ea0c (diff)
downloadgleam_stdlib-75dc802dda8c8629b08d0e8317f39ab47aaadb0e.tar.gz
gleam_stdlib-75dc802dda8c8629b08d0e8317f39ab47aaadb0e.zip
`tuple6` doc
-rw-r--r--src/gleam/dynamic.gleam8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam
index 16f593c..3eb4249 100644
--- a/src/gleam/dynamic.gleam
+++ b/src/gleam/dynamic.gleam
@@ -861,10 +861,16 @@ pub fn tuple5(
/// > from(#(1, 2))
/// > |> tuple6(int, float, string, int, int, int)
/// Error([
-/// DecodeError(expected: "6 element tuple", found: "2 element tuple", path: []),
+/// DecodeError(expected: "Tuple of 6 elements", found: "Tuple of 2 elements", path: []),
/// ])
/// ```
///
+/// ```gleam
+/// > from("")
+/// > |> tuple6(int, float, string, int, int, int)
+/// Error([DecodeError(expected: "Tuple of 6 elements", found: "String", path: [])])
+/// ```
+///
pub fn tuple6(
first decode1: Decoder(a),
second decode2: Decoder(b),