Skip to content

Commit

Permalink
add annotation to some examples of arithmetic clause (#2401)
Browse files Browse the repository at this point in the history
as titled
  • Loading branch information
knqiufan authored Dec 27, 2023
1 parent 0642d1e commit 0d18a49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs-2.0-zh/3.ngql-guide/5.operators/10.arithmetic.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@
## 示例

```ngql
# 返回 1+2 的结果。
nebula> RETURN 1+2 AS result;
+--------+
| result |
+--------+
| 3 |
+--------+
# 返回 -10+5 的结果。
nebula> RETURN -10+5 AS result;
+--------+
| result |
+--------+
| -5 |
+--------+
# 返回 (3*8)%5 的结果。
nebula> RETURN (3*8)%5 AS result;
+--------+
| result |
Expand Down

0 comments on commit 0d18a49

Please sign in to comment.