From 591e98a4083f1942e9139bd9e3d8266d9543e8f6 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 19 Apr 2024 13:35:19 +0800 Subject: [PATCH] Update operator.md --- docs/uts/operator.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/uts/operator.md b/docs/uts/operator.md index 86a545bc..8de05308 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 -- GitLab