Skip to content

Commit

Permalink
cohttp-eio: rename b to binding
Browse files Browse the repository at this point in the history
  • Loading branch information
bikallem committed Jan 11, 2023
1 parent 1faaf95 commit aaf6494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cohttp-eio/src/header.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ end
module type S = sig
type t
type 'a key
type b = B : 'a key * 'a -> b
type binding = B : 'a key * 'a -> binding
type mapper = { f : 'a. 'a key -> 'a -> 'a }

val empty : t
val add_string_val : 'a key -> string -> t -> t
val add : 'a key -> 'a -> t -> t
val find : 'a key -> t -> 'a
val find_opt : 'a key -> t -> 'a option
val iter : (b -> unit) -> t -> unit
val iter : (binding -> unit) -> t -> unit
val map : mapper -> t -> t
val fold : (b -> 'a -> 'a) -> t -> 'a -> 'a
val fold : (binding -> 'a -> 'a) -> t -> 'a -> 'a
val remove : 'a key -> t -> t
val update : 'a key -> ('a option -> 'a option) -> t -> t
end
Expand All @@ -57,7 +57,7 @@ end
with type 'a key = 'a Header.t = struct
type 'a key = 'a Header.t
type v = V : 'a key * 'a Lazy.t -> v (** Lazy value *)
type b = B : 'a key * 'a -> b
type binding = B : 'a key * 'a -> binding
type mapper = { f : 'a. 'a key -> 'a -> 'a }

module M = Map.Make (struct
Expand Down

0 comments on commit aaf6494

Please sign in to comment.