Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[勘误]反馈一个第2章第2节的错别字,2.2.1,77页 #34

Open
wide288 opened this issue Sep 21, 2020 · 1 comment
Open

[勘误]反馈一个第2章第2节的错别字,2.2.1,77页 #34

wide288 opened this issue Sep 21, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@wide288
Copy link

wide288 commented Sep 21, 2020

问题描述
2.2.1,77页
题目四,“答案为D ” 。这个是错的。应该为:“ 答案为C”

如何找到这个错误

  • 章节:
  • 页码:

您认为应该如何?

图片
如果有可能,尽量提供图片。

其他补充信息
我写了代码进行测试:
package main

import (
"fmt"
"time"
)

func main() {
RangeTimer()
}

func RangeTimer() {
t := time.NewTimer(time.Second)

for _ = range t.C {
	fmt.Println("hi")
}

}
输出:
hi
fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive]:
main.RangeTimer()
/Users//go/src/gitee.com/wide288/test/for-range1/main.go:15 +0xcc
main.main()
/Users/
/go/src/gitee.com/wide288/test/for-range1/main.go:9 +0x25

@wide288 wide288 added the bug Something isn't working label Sep 21, 2020
@RainbowMango
Copy link
Member

谢谢反馈,这个问题已经在RainbowMango/GoExpertProgramming#76 回答了。

那我准备关闭这个问题了哈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants