mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 02:16:48 +08:00
实例代码中的小疏忽
This commit is contained in:
@@ -102,7 +102,7 @@ func main() {
|
||||
|
||||
```
|
||||
type: float64
|
||||
value: <float64 Value>
|
||||
value: 3.4
|
||||
type: float64
|
||||
kind: float64
|
||||
value: 3.4
|
||||
|
@@ -1,4 +1,4 @@
|
||||
# 11.9 空接口
|
||||
# 11.9 空接口
|
||||
|
||||
## 11.9.1 概念
|
||||
|
||||
@@ -164,7 +164,7 @@ var interfaceSlice []interface{} = dataSlice
|
||||
var dataSlice []myType = FuncReturnSlice()
|
||||
var interfaceSlice []interface{} = make([]interface{}, len(dataSlice))
|
||||
for ix, d := range dataSlice {
|
||||
interfaceSlice[i] = d
|
||||
interfaceSlice[ix] = d
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user