diff --git a/README.md b/README.md index 1f21b90..0623b8b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ import gleam/int import priorityq pub fn main() { - new(int.compare) |> priorityq.is_empty // -> True + priorityq.new(int.compare) |> priorityq.is_empty // -> True let pq = priorityq.from_list([1, 5], int.compare) pq |> priorityq.push(10) |> priorityq.peek // -> 10