Skip to content

Commit 659aaac

Browse files
giacomocavalierilpil
authored andcommitted
remove list.range from code examples
1 parent d053837 commit 659aaac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gleam/list.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ fn take_firsts(
21392139
/// ## Example
21402140
///
21412141
/// ```gleam
2142-
/// range(1, 10) |> shuffle()
2142+
/// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |> shuffle
21432143
/// // -> [1, 6, 9, 10, 3, 8, 4, 2, 7, 5]
21442144
/// ```
21452145
///
@@ -2171,7 +2171,7 @@ fn do_shuffle_by_pair_indexes(
21712171
/// ## Examples
21722172
///
21732173
/// ```gleam
2174-
/// assert range(1, 10) |> list.max(int.compare) == Ok(10)
2174+
/// assert [1, 2, 3, 4, 5] |> list.max(int.compare) == Ok(5)
21752175
/// ```
21762176
///
21772177
/// ```gleam

0 commit comments

Comments
 (0)