From 75dc802dda8c8629b08d0e8317f39ab47aaadb0e Mon Sep 17 00:00:00 2001 From: Giacomo Cavalieri Date: Wed, 19 Apr 2023 10:28:58 +0200 Subject: `tuple6` doc --- src/gleam/dynamic.gleam | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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), -- cgit v1.2.3