diff --git a/docs/uts/operator.md b/docs/uts/operator.md index 86a545bc0b3a60e28e4c699129cf05824cc597a9..8de05308884d01166fd0d6bd90dc5b981ebaf00b 100644 --- a/docs/uts/operator.md +++ b/docs/uts/operator.md @@ -83,9 +83,12 @@ let a = 64 | temp | 运算符 | 范例 | 描述 | | ------------ | ---------------- | -------- | -| 逻辑与(&&) | expr1 && expr2 | (逻辑与) | -| 逻辑或(\|\|) | expr1 \|\| expr2 | (逻辑或) | -| 逻辑非(!) | !expr | (逻辑非) | +| 逻辑与(&&) | condition1 && condition2 | (逻辑与) | +| 逻辑或(\|\|) | condition1 \|\| condition2 | (逻辑或) | +| 逻辑非(!) | !condition1 | (逻辑非) | + +**注意** +逻辑运算符操作数的类型必须是Boolean ## 字符串运算符(String operators)@String-operators