Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsknn authored and lpil committed Jun 10, 2024
1 parent a59534e commit 2f5ef9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/chapter2_flow_control/lesson11_guards/code.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pub fn main() {
io.debug(get_first_larger(numbers, 5))
}

fn get_first_larger(lists: List(Int), limit: Int) -> Int {
case lists {
fn get_first_larger(numbers: List(Int), limit: Int) -> Int {
case numbers {
[first, ..] if first > limit -> first
[_, ..rest] -> get_first_larger(rest, limit)
[] -> 0
Expand Down

0 comments on commit 2f5ef9e

Please sign in to comment.