mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-09-14 15:42:01 +00:00
Merge pull request #246 from sunclx/patch-1
Update ch2-06-2.md:pc初始化函数缺少return
This commit is contained in:
@@ -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
|
||||
}()
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user