mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-11-13 09:16:10 +08:00
12.9md (#349)
* Update 11.9.md 修正166行一个错误,ix 改为i * Update 11.14.md 34-43行代码错误,会造成无法运行 * 修改一处权限bug,否则会造成linux下生成的文件为空
This commit is contained in:
@@ -163,8 +163,8 @@ var interfaceSlice []interface{} = dataSlice
|
||||
```go
|
||||
var dataSlice []myType = FuncReturnSlice()
|
||||
var interfaceSlice []interface{} = make([]interface{}, len(dataSlice))
|
||||
for ix, d := range dataSlice {
|
||||
interfaceSlice[ix] = d
|
||||
for i, d := range dataSlice {
|
||||
interfaceSlice[i] = d
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user