Skip to content

Commit f88cffd

Browse files
khalidbelklpil
authored andcommitted
refactor: apply formatter style to index_fold example
1 parent b725319 commit f88cffd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gleam/list.gleam

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,9 @@ pub fn fold_right(
785785
///
786786
/// ```gleam
787787
/// ["a", "b", "c"]
788-
/// |> index_fold("", fn(acc, item, index) { acc <> int.to_string(index) <> ":" <> item <> " " })
788+
/// |> index_fold("", fn(acc, item, index) {
789+
/// acc <> int.to_string(index) <> ":" <> item <> " "
790+
/// })
789791
/// // -> 0:a 1:b 2:c
790792
/// ```
791793
///

0 commit comments

Comments
 (0)