Skip to content

Commit cad41d7

Browse files
committed
ocamlformat
1 parent b140a50 commit cad41d7

26 files changed

+89
-92
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
strategy:
6969
matrix:
7070
ocaml-compiler:
71-
- '5.1'
71+
- '5.2'
7272
runs-on: 'ubuntu-latest'
7373
steps:
7474
- uses: actions/checkout@main
@@ -79,6 +79,6 @@ jobs:
7979
dune-cache: true
8080
allow-prerelease-opam: true
8181

82-
- run: opam install ocamlformat.0.24.1
82+
- run: opam install ocamlformat.0.26.2
8383
- run: opam exec -- make format-check
8484

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 0.24.1
1+
version = 0.26.2
22
profile=conventional
33
margin=80
44
if-then-else=k-r

src/core/CCHash.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ let int = hash_int_
7777
let bool b =
7878
hash_int_
7979
(if b then
80-
1
81-
else
82-
2)
80+
1
81+
else
82+
2)
8383

8484
let char x = hash_int_ (Char.code x)
8585

src/core/CCList.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ val partition_map :
248248
('a -> [< `Left of 'b | `Right of 'c | `Drop ]) ->
249249
'a list ->
250250
'b list * 'c list
251-
[@@ocaml.deprecated "use CCList.partition_filter_map instead"]
251+
[@@ocaml.deprecated "use CCList.partition_filter_map instead"]
252252
(** @deprecated use {!partition_filter_map} instead
253253
@since 0.11 *)
254254

src/core/CCListLabels.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ val partition_map :
281281
f:('a -> [< `Left of 'b | `Right of 'c | `Drop ]) ->
282282
'a list ->
283283
'b list * 'c list
284-
[@@ocaml.deprecated "use CCList.partition_filter_map instead"]
284+
[@@ocaml.deprecated "use CCList.partition_filter_map instead"]
285285
(** @deprecated use {!partition_filter_map} instead *)
286286

287287
val group_by : ?hash:('a -> int) -> ?eq:('a -> 'a -> bool) -> 'a t -> 'a list t

src/core/CCOption.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ val value : 'a t -> default:'a -> 'a
107107
@since 2.8 *)
108108

109109
val get_exn : 'a t -> 'a
110-
[@@ocaml.deprecated "use CCOption.get_exn_or instead"]
110+
[@@ocaml.deprecated "use CCOption.get_exn_or instead"]
111111
(** [get_exn o] returns [x] if [o] is [Some x] or fails if [o] is [None].
112112
@raise Invalid_argument if the option is [None].
113113
@deprecated use {!get_exn_or} instead

src/core/CCOrd.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ val poly : 'a t
1313
@since 3.6 *)
1414

1515
val compare : 'a t
16-
[@@deprecated "use CCOrd.poly instead, this name is too general"]
16+
[@@deprecated "use CCOrd.poly instead, this name is too general"]
1717
(** Polymorphic "magic" comparison.
1818
@deprecated since 3.6 in favor of {!poly}. The reason is that
1919
[compare] is easily shadowed, can shadow other comparators, and is just

src/core/CCParse.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ val optional : _ t -> unit t
404404
@since 3.6 *)
405405

406406
val try_ : 'a t -> 'a t
407-
[@@deprecated "plays no role anymore, just replace [try foo] with [foo]"]
407+
[@@deprecated "plays no role anymore, just replace [try foo] with [foo]"]
408408
(** [try_ p] is just like [p] (it used to play a role in backtracking
409409
semantics but no more).
410410

src/core/CCVector.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ let find_internal_i_ p v =
498498
else (
499499
let x = v.vec.(i) in
500500
if p x then
501-
i,x
501+
i, x
502502
else
503503
check (i + 1)
504504
)

src/data/CCBV.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ let pp out bv =
407407
iter bv (fun _i b ->
408408
Format.pp_print_char out
409409
(if b then
410-
'1'
411-
else
412-
'0'));
410+
'1'
411+
else
412+
'0'));
413413
Format.pp_print_string out "}"
414414

415415
module Internal_ = struct

0 commit comments

Comments
 (0)