Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 779a1b8

Browse files
committed
use :: instead
1 parent ce2a8de commit 779a1b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/res_core.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ and parseParameter p =
15561556
let loc = mkLoc startPos p.prevEndPos in
15571557
( [],
15581558
Asttypes.Labelled lblName,
1559-
Ast_helper.Pat.var ~attrs:([propLocAttr] @ attrs) ~loc
1559+
Ast_helper.Pat.var ~attrs:(propLocAttr :: attrs) ~loc
15601560
(Location.mkloc lblName loc) )
15611561
| Colon ->
15621562
let lblEnd = p.prevEndPos in
@@ -1566,7 +1566,7 @@ and parseParameter p =
15661566
let pat =
15671567
let pat = Ast_helper.Pat.var ~loc (Location.mkloc lblName loc) in
15681568
let loc = mkLoc startPos p.prevEndPos in
1569-
Ast_helper.Pat.constraint_ ~attrs:([propLocAttr] @ attrs) ~loc pat
1569+
Ast_helper.Pat.constraint_ ~attrs:(propLocAttr :: attrs) ~loc pat
15701570
typ
15711571
in
15721572
([], Asttypes.Labelled lblName, pat)

0 commit comments

Comments
 (0)