aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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),