Skip to content

Commit ae49a41

Browse files
kwandolpil
authored andcommitted
Fix typo in list.gleam
The example is calling a nonexistent function. This updates the example to use the `sample` function.
1 parent 4870b16 commit ae49a41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gleam/list.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ fn max_loop(list, compare, max) {
23052305
/// ## Examples
23062306
///
23072307
/// ```gleam
2308-
/// reservoir_sample([1, 2, 3, 4, 5], 3)
2308+
/// sample([1, 2, 3, 4, 5], 3)
23092309
/// // -> [2, 4, 5] // A random sample of 3 items
23102310
/// ```
23112311
///

0 commit comments

Comments
 (0)