Skip to content

Commit 8ccc99b

Browse files
committed
feat(i18n/zh-cn): translate comments
1 parent e67548c commit 8ccc99b

File tree

1 file changed

+35
-0
lines changed
  • i18n/zh-cn/docusaurus-plugin-content-docs/current/tour

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# 注释
2+
3+
D2 语言支持行注释和块注释。
4+
5+
## 行注释
6+
7+
行注释以井号(`#`)开头。
8+
9+
它们可以单独成行:
10+
11+
```d2
12+
# 注释以井号开头,直至遇到换行符或 EOF。
13+
x -> y
14+
```
15+
16+
也可以放在一行的末尾:
17+
18+
```d2
19+
x -> y # 我在行尾
20+
```
21+
22+
## 块注释
23+
24+
块注释以三个双引号(`"""`)开头和结尾:
25+
26+
```d2
27+
x -> y
28+
29+
"""
30+
这是一个
31+
块注释
32+
"""
33+
34+
y -> z
35+
```

0 commit comments

Comments
 (0)