mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-03-07 21:27:55 -05:00
parent
08e8fd3d54
commit
aba4c79625
1 changed files with 4 additions and 1 deletions
|
|
@ -398,7 +398,10 @@ let sprintf_ c format =
|
||||||
Format.kfprintf
|
Format.kfprintf
|
||||||
(fun _fmt ->
|
(fun _fmt ->
|
||||||
Format.pp_print_flush fmt ();
|
Format.pp_print_flush fmt ();
|
||||||
Buffer.contents buf)
|
let s = Buffer.contents buf in
|
||||||
|
Buffer.reset buf;
|
||||||
|
(* in case of reuse *)
|
||||||
|
s)
|
||||||
fmt format
|
fmt format
|
||||||
|
|
||||||
let with_color_ksf ~f s fmt =
|
let with_color_ksf ~f s fmt =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue