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

Commit b911f84

Browse files
mununkicristianoc
authored andcommitted
fix comments
1 parent 812384c commit b911f84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/reactjs_jsx_ppx.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,11 +1607,11 @@ module V4 = struct
16071607
~kind:(Ptype_record labelDeclList);
16081608
]
16091609

1610-
(* type props<'id, 'name, ...> = { @optional key: string, @optional id: 'id, ... } *)
1610+
(* type props<'x, 'y, ...> = { x: 'x, y?: 'y, ... } *)
16111611
let makePropsRecordType propsName loc namedTypeList =
16121612
Str.type_ Nonrecursive (makeTypeDecls propsName loc namedTypeList)
16131613

1614-
(* type props<'id, 'name, ...> = { @optional key: string, @optional id: 'id, ... } *)
1614+
(* type props<'x, 'y, ...> = { x: 'x, y?: 'y, ... } *)
16151615
let makePropsRecordTypeSig propsName loc namedTypeList =
16161616
Sig.type_ Nonrecursive (makeTypeDecls propsName loc namedTypeList)
16171617

@@ -2060,7 +2060,7 @@ module V4 = struct
20602060
(Location.mkloc (Lident "props") pstr_loc)
20612061
(makePropsTypeParams namedTypeList)
20622062
in
2063-
(* type props<'id, 'name> = { @optional key: string, @optional id: 'id, ... } *)
2063+
(* type props<'x, 'y> = { x: 'x, y?: 'y, ... } *)
20642064
let propsRecordType =
20652065
makePropsRecordType "props" Location.none namedTypeList
20662066
in

0 commit comments

Comments
 (0)