Skip to content

Commit

Permalink
Fix typos in gleam/list module's doc
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomocavalieri authored and lpil committed May 22, 2023
1 parent 308f5be commit e2ede62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gleam/list.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down Expand Up @@ -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
///
Expand Down Expand Up @@ -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
///
Expand Down

0 comments on commit e2ede62

Please sign in to comment.