diff options
-rw-r--r-- | src/gleam/list.gleam | 2 | ||||
-rw-r--r-- | test/gleam/list_test.gleam | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index e49334b..680b0b0 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -1260,7 +1260,7 @@ fn do_take_while( /// /// ## Examples /// -/// > take_while([1, 2, 3, 4], fun (x) { x < 3 }) +/// > take_while([1, 2, 3, 2, 4], fun (x) { x < 3 }) /// [1, 2] /// pub fn take_while( diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam index f1acfb2..abeafdf 100644 --- a/test/gleam/list_test.gleam +++ b/test/gleam/list_test.gleam @@ -586,7 +586,7 @@ pub fn drop_while_test() { } pub fn take_while_test() { - [1, 2, 3, 4] + [1, 2, 3, 2, 4] |> list.take_while(fn(x) { x < 3 }) |> should.equal([1, 2]) } |