Skip to content

Commit

Permalink
Document usage of 's second argument.
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Eastlund <[email protected]>
  • Loading branch information
ceastlund committed Feb 12, 2025
1 parent 03cf083 commit fb608b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ast_pattern.mli
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,5 @@ val of_func : (context -> Location.t -> 'a -> 'b -> 'c) -> ('a, 'b, 'c) t
val to_func : ('a, 'b, 'c) t -> context -> Location.t -> 'a -> 'b -> 'c

val fail : Location.t -> string -> _
(** Call from [of_func]'s argument when the pattern does not match. *)
(** Call from [of_func]'s argument when the pattern does not match. The string
should describe the expected shape of the AST where the match failed. *)

0 comments on commit fb608b4

Please sign in to comment.