From 4b7897ec827fbe83d5b4accb90d30f3831bc238c Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Sun, 24 Apr 2016 18:15:24 +0200 Subject: [PATCH] doc --- src/core/CCFormat.mli | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/CCFormat.mli b/src/core/CCFormat.mli index 45d4aafb..7d2fd22b 100644 --- a/src/core/CCFormat.mli +++ b/src/core/CCFormat.mli @@ -37,6 +37,9 @@ val arrayi : ?start:string -> ?stop:string -> ?sep:string -> val seq : ?start:string -> ?stop:string -> ?sep:string -> 'a printer -> 'a sequence printer val opt : 'a printer -> 'a option printer +(** [opt pp] prints options as follows: + [Some x] will become "some foo" if [pp x ---> "foo"] + [None] will become "none" *) (** In the tuple printers, the [sep] argument is only available @since 0.17 *)