We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24999f commit 90b462bCopy full SHA for 90b462b
lib/lin.ml
@@ -16,14 +16,8 @@ struct
16
(fun () -> let old = !counter in
17
incr counter; old),
18
(fun () -> counter := 0)
19
- let pp fmt v = Format.fprintf fmt "t%i" v
20
- let show t =
21
- let buf = Buffer.create 24 in
22
- let fmt = Format.formatter_of_buffer buf in
23
- pp fmt t;
24
- let str = Buffer.contents buf in
25
- Buffer.clear buf;
26
- str
+ let show v = Format.sprintf "t%i" v
+ let pp fmt v = Format.fprintf fmt "%s" (show v)
27
let shrink = Shrink.int
28
end
29
0 commit comments