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 317c239 commit 895115aCopy full SHA for 895115a
examples/processes/holder_annotated.ml
@@ -1,6 +1,6 @@
1
-type msg = [ | `Reset | `Add of int | `Hello of string ]
+type msg = [ `Reset | `Add of int | `Hello of string ]
2
3
-type state = (string * int)
+type state = string * int
4
5
let handle_message (state : state) (msg : msg option) =
6
let x, y = state in
examples/processes/typed_reply.ml
@@ -1,7 +1,7 @@
let rec a_loop pid recv i =
match recv ~timeout:Process.Infinity with
| None -> a_loop pid recv i
- | Some `Noop -> a_loop pid recv i
+ | Some `Noop -> a_loop pid recv i
| Some (`Call (cb, msg)) ->
Erlang.send cb i;
7
a_loop pid recv (i + msg)
0 commit comments