Skip to content

Commit

Permalink
Remove extra empty parentheses in README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklimmm committed May 2, 2024
1 parent 49ed9ad commit bb023d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import gleam/int
import priorityq
pub fn main() {
new(int.compare) |> priorityq.is_empty() // -> True
new(int.compare) |> priorityq.is_empty // -> True
let pq = priorityq.from_list([1, 5], int.compare)
pq |> priorityq.push(10) |> priorityq.peek() // -> 10
pq |> priorityq.pop() |> priorityq.size() // -> 1
pq |> priorityq.push(10) |> priorityq.peek // -> 10
pq |> priorityq.pop |> priorityq.size // -> 1
}
```

Expand Down

0 comments on commit bb023d4

Please sign in to comment.