Skip to content

Commit f7451ad

Browse files
committed
stop swallowing last line of usage
1 parent 1a7152b commit f7451ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: scripts/rescript_arg.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function bad_arg(s) {
2626
/**
2727
* @typedef {{val : string}} stringref
2828
* @typedef {{val : boolean}} boolref
29-
* @typedef {{kind:"Unit_call",data : ()=>void } | {kind : "Unit_set", data : boolref}}unit_action
29+
* @typedef {{kind:"Unit_call",data : ()=>void } | {kind : "Unit_set", data : boolref}} unit_action
3030
* @typedef {{kind:"String_call",data:(s : string)=>void} | {kind : "String_set",data: stringref}} string_action
3131
* @typedef {{kind:"Unit",data : unit_action } | {kind:"String", data: string_action}} action
3232
* @typedef {Array<[string,action,string]>} specs
@@ -67,9 +67,7 @@ function usage_b(b, usage, specs) {
6767
cur = i + 1;
6868
}
6969
}
70-
if (i < specs.length - 1) {
71-
b.add("\n");
72-
}
70+
b.add("\n");
7371
}
7472
}
7573
}

0 commit comments

Comments
 (0)