Skip to content

Commit 6253a22

Browse files
committed
adjust parens
1 parent 743fab2 commit 6253a22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/core/js_op_util.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let op_prec (op : Js_op.binop) =
4141
| Lsl | Lsr | Asr -> (10, 10, 11)
4242
| Plus | Minus -> (11, 11, 12)
4343
| Mul | Div | Mod -> (12, 12, 13)
44-
| Pow -> (12, 14, 12)
44+
| Pow -> (13, 14, 12)
4545

4646
let op_int_prec (op : Js_op.int_op) =
4747
match op with

tests/tests/src/variantsMatching.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ let MyNullableExtended = {
333333
function area(shape) {
334334
switch (shape.kind) {
335335
case 1 :
336-
return Math.PI * (shape.radius ** 2);
336+
return Math.PI * shape.radius ** 2;
337337
case "square" :
338338
return shape.sideLength ** 2;
339339
case "rectangle" :

0 commit comments

Comments
 (0)