Skip to content

Commit 4556b7c

Browse files
authored
Merge pull request #94 from optor666/main
Update operator.md
2 parents 1f8bc1a + 696ea8e commit 4556b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/operator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ x = (1, 2, 3);
438438
5 * 6 / 2;
439439
```
440440

441-
上面示例中,`*``/`的优先级相同,它们都是左结合运算符,所以从左到右执行,先计算`5 * 6`,再计算`6 / 2`
441+
上面示例中,`*``/`的优先级相同,它们都是左结合运算符,所以从左到右执行,先计算`5 * 6`,再计算`30 / 2`
442442

443443
运算符的优先级顺序很复杂。下面是部分运算符的优先级顺序(按照优先级从高到低排列)。
444444

0 commit comments

Comments
 (0)