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 }()pull/1/head
parent
63e77568ad
commit
5b4d690a48
|
@ -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