From 716102fcf78aa092637e43fc61b2092d37d8d43d Mon Sep 17 00:00:00 2001 From: Giacomo Cavalieri Date: Wed, 19 Apr 2023 10:25:45 +0200 Subject: `tuple2` doc --- src/gleam/dynamic.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index d9aa2ee..55008dd 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -657,14 +657,14 @@ fn push_path(error: DecodeError, name: t) -> DecodeError { /// > from(#(1, 2, 3)) /// > |> tuple2(int, float) /// Error([ -/// DecodeError(expected: "2 element tuple", found: "3 element tuple", path: []), +/// DecodeError(expected: "Tuple of 2 elements", found: "Tuple of 3 elements", path: []), /// ]) /// ``` /// /// ```gleam /// > from("") /// > |> tuple2(int, float) -/// Error([DecodeError(expected: "2 element tuple", found: "String", path: [])]) +/// Error([DecodeError(expected: "Tuple of 2 elements", found: "String", path: [])]) /// ``` /// pub fn tuple2( -- cgit v1.2.3