aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gleam/iterator.gleam6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gleam/iterator.gleam b/src/gleam/iterator.gleam
index 318ffd1..89d50a8 100644
--- a/src/gleam/iterator.gleam
+++ b/src/gleam/iterator.gleam
@@ -1396,16 +1396,16 @@ fn do_length(over continuation: fn() -> Action(e), with length: Int) -> Int {
/// ## Examples
///
/// ```gleam
-/// > empty() |> count
+/// > empty() |> length
/// 0
/// ```
///
/// ```gleam
-/// > from_list([1, 2, 3, 4]) |> count
+/// > from_list([1, 2, 3, 4]) |> length
/// 4
/// ```
///
-pub fn length(in iterator: Iterator(e)) -> Int {
+pub fn length(over iterator: Iterator(e)) -> Int {
iterator.continuation
|> do_length(0)
}