mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-04 21:43:42 +00:00
Update ch2-06-2.md:pc初始化函数缺少return
Update ch2-06-2.md var pc [256]byte = func() (pc [256]byte) { for i := range pc { pc[i] = pc[i/2] + byte(i&1) } return }()
This commit is contained in:
parent
63e77568ad
commit
5b4d690a48
@ -58,6 +58,7 @@ var pc [256]byte = func() (pc [256]byte) {
|
||||
for i := range pc {
|
||||
pc[i] = pc[i/2] + byte(i&1)
|
||||
}
|
||||
return
|
||||
}()
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user