Skip to content

Commit f2edd4d

Browse files
giacomocavalierilpil
authored andcommitted
Fix inconsistencies in list.shuffle documentation
1 parent 778ec77 commit f2edd4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gleam/list.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,9 +2062,9 @@ fn do_shuffle_by_pair_indexes(
20622062
/// ## Example
20632063
///
20642064
/// ```gleam
2065-
/// list.range(1, 10)
2066-
/// |> list.shuffle()
2067-
/// > [1, 6, 9, 10, 3, 8, 4, 2, 7, 5]
2065+
/// > range(1, 10)
2066+
/// > |> shuffle()
2067+
/// [1, 6, 9, 10, 3, 8, 4, 2, 7, 5]
20682068
/// ```
20692069
///
20702070
pub fn shuffle(list: List(a)) -> List(a) {

0 commit comments

Comments
 (0)