mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-24 23:29:01 +00:00
Merge pull request #246 from sunclx/patch-1
Update ch2-06-2.md:pc初始化函数缺少return
This commit is contained in:
commit
9e3805d9b1
@ -58,6 +58,7 @@ var pc [256]byte = func() (pc [256]byte) {
|
|||||||
for i := range pc {
|
for i := range pc {
|
||||||
pc[i] = pc[i/2] + byte(i&1)
|
pc[i] = pc[i/2] + byte(i&1)
|
||||||
}
|
}
|
||||||
|
return
|
||||||
}()
|
}()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user