aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErika Rowland <accounts@erikarowland.com>2023-10-23 22:31:54 -0700
committerLouis Pilfold <louis@lpil.uk>2023-10-24 14:37:57 +0100
commit14946eceba22eabd381b4bf92fb0ab8b6eb2af2f (patch)
tree5f19896e5b9fc438abc6a05ac87506d88d9e7404
parent251838e2105f738a4fc3f8ec6aa8772a59a77934 (diff)
downloadgleam_stdlib-14946eceba22eabd381b4bf92fb0ab8b6eb2af2f.tar.gz
gleam_stdlib-14946eceba22eabd381b4bf92fb0ab8b6eb2af2f.zip
docs: Fix list.group example
-rw-r--r--src/gleam/list.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index 85afeec..e0c50ef 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -280,7 +280,7 @@ fn update_group(
/// #("Successful", [Ok(73), Ok(200), Ok(3)])
/// ]
///
-/// > group(from: [1,2,3,4,5], with: fn(i) {fn(i) { i - i / 3 * 3 }})
+/// > group([1,2,3,4,5], by: fn(i) { i - i / 3 * 3 })
/// |> map.to_list
/// [#(0, [3]), #(1, [4, 1]), #(2, [5, 2])]
/// ```