Skip to content

Commit b57f635

Browse files
authored
Merge pull request #341 from samoht/format-comments
Format comments
2 parents 965df68 + ef91c5b commit b57f635

File tree

9 files changed

+189
-190
lines changed

9 files changed

+189
-190
lines changed

.ocamlformat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ nested-match=align
66
sequence-style=separator
77
break-before-in=auto
88
if-then-else=keyword-first
9-
parse-docstrings=false

src/async/conduit_async.mli

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,16 @@ val serve :
1919
service:('cfg, 't, 'v) service ->
2020
'cfg ->
2121
unit Async.Condition.t * (unit -> unit Async.Deferred.t)
22-
(** [serve ~handler ~service cfg] creates an usual infinite [service]
23-
loop from the given configuration ['cfg]. It returns the {i promise}
24-
to launch the loop and a condition variable to stop the loop.
22+
(** [serve ~handler ~service cfg] creates an usual infinite [service] loop from
23+
the given configuration ['cfg]. It returns the {i promise} to launch the
24+
loop and a condition variable to stop the loop.
2525
2626
{[
27-
let stop, loop = serve
28-
~handler ~service:TCP.service cfg in
29-
Async_unix.Signal.handle [ Core.Signal.int ]
30-
~f:(fun _sig -> Async.Condition.broadcast stop ()) ;
27+
let stop, loop = serve ~handler ~service:TCP.service cfg in
28+
Async_unix.Signal.handle [ Core.Signal.int ] ~f:(fun _sig ->
29+
Async.Condition.broadcast stop ()) ;
3130
loop ()
32-
]}
33-
*)
31+
]} *)
3432

3533
val reader_and_writer_of_flow :
3634
flow -> (Async.Reader.t * Async.Writer.t) Async.Deferred.t

src/core/conduit.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ module Log = (val Logs.src_log src : Logs.LOG)
2828
type ('a, 'b, 'c) thd =
2929
| Thd : 'b -> ('a, 'b, 'c) thd
3030
(** XXX(dinosaure): we must define [(_, _, _) thd] to be able to keep some
31-
existential types (eg. ['cfg] and ['flow] when we use [('cfg, 't, 'flow)
32-
service]) but still to use only on (eg. ['t]).
31+
existential types (eg. ['cfg] and ['flow] when we use
32+
[('cfg, 't, 'flow) service]) but still to use only on (eg. ['t]).
3333
3434
We add [warning "-37"] to be able to compile the project. *)
3535

0 commit comments

Comments
 (0)