aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDylan Lederle-Ensign <dylan.lederle.ensign@gmail.com>2021-12-03 10:37:10 -0500
committerLouis Pilfold <louis@lpil.uk>2021-12-03 18:04:02 +0000
commit32e43bb7fccdf112280e4d65df786ac556d7340f (patch)
tree48dd34e8b042e5ca9092d41e29de7797f129702a /src
parent5ea5692c88000193acea59cabea3ea3e76e5b065 (diff)
downloadgleam_stdlib-32e43bb7fccdf112280e4d65df786ac556d7340f.tar.gz
gleam_stdlib-32e43bb7fccdf112280e4d65df786ac556d7340f.zip
Update `index_fold` doc example
The arguments in this example are mislabeled
Diffstat (limited to 'src')
-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 07a6953..9172b97 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -582,7 +582,7 @@ fn do_index_fold(
///
/// ```
/// ["a", "b", "c"]
-/// |> list.index_fold([], fn(index, item, acc) { ... })
+/// |> list.index_fold([], fn(acc, item, index) { ... })
/// ```
///
pub fn index_fold(