chore: inline the doc of the included modules

This commit is contained in:
Emmanuel Arrighi 2026-02-06 14:36:44 +01:00
parent 30f7ac7551
commit 405dfa4891
5 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,7 @@ module type OrderedType = Map.OrderedType
module type S = sig
include Map.S
(** @inline *)
val get : key -> 'a t -> 'a option
(** [get k m] returns [Some v] if the current binding of [k] in [m] is [v],

View file

@ -18,6 +18,7 @@
include module type of struct
include Nativeint
end
(** @inline *)
val min : t -> t -> t
(** [min x y] returns the minimum of the two integers [x] and [y].

View file

@ -6,6 +6,7 @@
@since 3.6 *)
include module type of Option
(** @inline *)
val map_or : default:'b -> ('a -> 'b) -> 'a t -> 'b
(** [map_or ~default f o] is [f x] if [o = Some x], [default] otherwise.

View file

@ -5,6 +5,7 @@
[@@@ifge 5.4]
include module type of Pair
(** @inline *)
[@@@else_]

View file

@ -17,6 +17,7 @@ type 'a printer = Format.formatter -> 'a -> unit
(** {2 Basics} *)
include module type of Result
(** @inline *)
val return : 'a -> ('a, 'err) t
(** Successfully return a value. *)