Skip to content

Commit

Permalink
consistent exception with the stdlib for Map.max_binding (issue ocaml…
Browse files Browse the repository at this point in the history
  • Loading branch information
fccm committed Nov 10, 2021
1 parent b106a58 commit 91f2495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/batMap.ml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module Concrete = struct
let rec max_binding = function
| Node (_, k, v, Empty, _) -> k, v
| Node (_, _, _, r, _) -> max_binding r
| Empty -> invalid_arg "PMap.max_binding: empty tree"
| Empty -> raise Not_found

let pop_max_binding s =
let maxi = ref (get_root s) in
Expand Down

0 comments on commit 91f2495

Please sign in to comment.