From e2ede62f8d09d4c1674277f50cd4dea3dee4d014 Mon Sep 17 00:00:00 2001 From: Giacomo Cavalieri Date: Sat, 20 May 2023 20:44:22 +0200 Subject: Fix typos in `gleam/list` module's doc --- src/gleam/list.gleam | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam index e643976..b7b0186 100644 --- a/src/gleam/list.gleam +++ b/src/gleam/list.gleam @@ -1414,7 +1414,7 @@ fn do_pop(haystack, predicate, checked) { } } -/// Removes the first element in a given list for which the predicate funtion returns `True`. +/// Removes the first element in a given list for which the predicate function returns `True`. /// /// Returns `Error(Nil)` if no such element is found. /// @@ -1702,7 +1702,7 @@ pub fn window_by_2(l: List(a)) -> List(#(a, a)) { zip(l, drop(l, 1)) } -/// Drops the first elements in a given list for which the predicate funtion returns `True`. +/// Drops the first elements in a given list for which the predicate function returns `True`. /// /// ## Examples /// @@ -1740,7 +1740,7 @@ fn do_take_while( } } -/// Takes the first elements in a given list for which the predicate funtion returns `True`. +/// Takes the first elements in a given list for which the predicate function returns `True`. /// /// ## Examples /// -- cgit v1.2.3