Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ecc5c7f

Browse files
CoffenHuTinywan
authored andcommitted
Update golang_tutorial_03.md
fix: 申明变量: 去掉多余的","
1 parent 02cd04d commit ecc5c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/golang_tutorial_03.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ new width is 100 new height is 50
165165
有些时候我们需要在一条语句中**声明多个不同类型的变量**。我们可以使用下面的语法达到此目的:
166166
```golang
167167
var (
168-
name1 = initialvalue1,
168+
name1 = initialvalue1
169169
name2 = initialvalue2
170170
)
171171
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /