aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiacomo Cavalieri <giacomo.cavalieri@icloud.com>2023-04-19 10:25:45 +0200
committerLouis Pilfold <louis@lpil.uk>2023-04-20 17:07:18 +0100
commit716102fcf78aa092637e43fc61b2092d37d8d43d (patch)
treec13ede82235064975ce75a52a12c660dc11c0187 /src
parentd66cadc685dcd05db07c982bc768a46b29cc7e19 (diff)
downloadgleam_stdlib-716102fcf78aa092637e43fc61b2092d37d8d43d.tar.gz
gleam_stdlib-716102fcf78aa092637e43fc61b2092d37d8d43d.zip
`tuple2` doc
Diffstat (limited to 'src')
-rw-r--r--src/gleam/dynamic.gleam4
1 files changed, 2 insertions, 2 deletions
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(