mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-05 15:12:33 +00:00
Update ch3-06-2.md
This commit is contained in:
@@ -69,7 +69,7 @@ const (
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
对于一个没有显式类型的变量声明语法(包括短变量声明语法),无类型的常量会被隐式转为默认的变量类型,就像下面的例子:
|
对于一个没有显式类型的变量声明(包括简短变量声明),常量的形式将隐式决定变量的默认类型,就像下面的例子:
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
i := 0 // untyped integer; implicit int(0)
|
i := 0 // untyped integer; implicit int(0)
|
||||||
|
Reference in New Issue
Block a user