Skip to content

Commit bc594b1

Browse files
authored
Update index.md
1 parent 533cf44 commit bc594b1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

index.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@
3939
打印字符和调用函数:
4040

4141
```wa
42-
fn main() {
43-
print('凹')
44-
print('语')
45-
print('言')
46-
print('\n')
47-
42+
fn main {
43+
println("你好,凹语言!")
4844
println(add(40, 2))
4945
}
5046
@@ -57,7 +53,7 @@ fn add(a: i32, b: i32) => i32 {
5753

5854
```
5955
$ go run main.go hello.wa
60-
凹语言
56+
你好,凹语言
6157
42
6258
```
6359

0 commit comments

Comments
 (0)