Skip to content

Commit

Permalink
rename pp_method' to pp_method
Browse files Browse the repository at this point in the history
  • Loading branch information
bikallem committed Aug 5, 2021
1 parent 38b3b40 commit 7da1c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/wtr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type method' =

let method_equal (meth1 : method') (meth2 : method') = compare meth1 meth2 = 0

let pp_method' fmt t =
let pp_method fmt t =
( match t with
| `GET -> "GET"
| `HEAD -> "HEAD"
Expand Down Expand Up @@ -107,7 +107,7 @@ type ('a, 'b) uri =
let rec pp_uri : type a b. Format.formatter -> (a, b) uri -> unit =
fun fmt -> function
| Nil -> Format.fprintf fmt "%!"
| Method (meth, uri) -> Format.fprintf fmt "%a%a" pp_method' meth pp_uri uri
| Method (meth, uri) -> Format.fprintf fmt "%a%a" pp_method meth pp_uri uri
| Full_splat -> Format.fprintf fmt "/**%!"
| Trailing_slash -> Format.fprintf fmt "/%!"
| Literal (lit, uri) -> Format.fprintf fmt "/%s%a" lit pp_uri uri
Expand Down Expand Up @@ -156,7 +156,7 @@ let node_type_to_string node_type =
| PTrailing_slash -> Format.sprintf "/%!"
| PLiteral lit -> Format.sprintf "/%s" lit
| PDecoder decoder -> Format.sprintf "/:%s" decoder.name
| PMethod method' -> Format.asprintf "%a" pp_method' method'
| PMethod method' -> Format.asprintf "%a" pp_method method'

(** ['a t] is a node in a trie based router. *)
type 'a node = {route: 'a route option; node_types: (node_type * 'a node) list}
Expand Down
2 changes: 1 addition & 1 deletion lib/wtr.mli
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ val method' : string -> method'

(** {1 Pretty Printers} *)

val pp_method' : Format.formatter -> method' -> unit
val pp_method : Format.formatter -> method' -> unit
val pp_route : Format.formatter -> 'b route -> unit
val pp : Format.formatter -> 'a t -> unit

Expand Down

0 comments on commit 7da1c49

Please sign in to comment.