Skip to content

Commit 971c07b

Browse files
tranzystorekklpil
authored andcommitted
Fix example for iterator.flatten
1 parent e82e02a commit 971c07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gleam/iterator.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ fn do_flatten(flattened: fn() -> Action(Iterator(a))) -> Action(a) {
330330
///
331331
/// ## Examples
332332
///
333-
/// > [[1, 2], [3, 4]] |> list.map(from_list) |> flatten |> to_list
333+
/// > from_list([[1, 2], [3, 4]]) |> map(from_list) |> flatten |> to_list
334334
/// [1, 2, 3, 4]
335335
///
336336
pub fn flatten(iterator: Iterator(Iterator(a))) -> Iterator(a) {

0 commit comments

Comments
 (0)