From 9fe0d2eb6a418f001d963d33408f590e82175e0b Mon Sep 17 00:00:00 2001 From: Erika Rowland Date: Mon, 23 Oct 2023 22:31:54 -0700 Subject: [PATCH] docs: Fix list.group example --- src/gleam/list.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index 85afeecd..e0c50efb 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])] /// ```