mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 23:08:34 +08:00
update
This commit is contained in:
@@ -21,11 +21,11 @@ func nextFew1(n nexter, num int) []byte {
|
||||
return b
|
||||
}
|
||||
func nextFew2(n *nexter, num int) []byte {
|
||||
var b []byte
|
||||
for i:=0; i < num; i++ {
|
||||
b[i] = n.next() // 编译错误:n.next未定义(*nexter类型没有next成员或next方法)
|
||||
}
|
||||
return b
|
||||
var b []byte
|
||||
for i:=0; i < num; i++ {
|
||||
b[i] = n.next() // 编译错误:n.next未定义(*nexter类型没有next成员或next方法)
|
||||
}
|
||||
return b
|
||||
}
|
||||
func main() {
|
||||
fmt.Println(“Hello World!”)
|
||||
|
Reference in New Issue
Block a user