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