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:
sunclx 2016-01-31 14:10:17 +08:00
parent 63e77568ad
commit 5b4d690a48

View File

@ -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
}()
```