Skip to content

Commit dc09f67

Browse files
committed
update errata.md, fix #28
1 parent 29d74d4 commit dc09f67

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

chapter6/sources/go-concurrency-pattern-5.go

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func spawn(f func(int)) chan string {
1616
f(j)
1717
case <-quit:
1818
quit <- "ok"
19+
return
1920
}
2021
}
2122
}()

errata.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@
3535
| 25 | Go语言精进之路vol2 | P229 错别字问题 具体参见[issue25](https://github.com/bigwhite/GoProgrammingFromBeginnerToMaster/issues/25) | 最下面一段,私钥可以看“出“数对,应为看“成” | https://github.com/XQ-Gang | typo | 私钥可以看出数对 应改为 私钥可以看成数对 | 未改 |
3636
| 26 | Go语言精进之路vol1 | p131 | "mypkg1则指代的是chapter3-demo1/pkg/pkg1下面的包"中的路径有误| [email protected] | typo | "mypkg1则指代的是chapter3-demo1/pkg/pkg1下面的包"应该为"mypkg1则指代的是chapter3-demo2/pkg/pkg1下面的包" | 未改 |
3737
| 27 | Go语言精进之路vol1 | p298,具体参见[issue27](https://github.com/bigwhite/GoProgrammingFromBeginnerToMaster/issues/27) | 这里简单的用 3600/3 = 1200 作为最终的最短耗时预期是不合理的 | https://github.com/MrBear2018 | 内容错误 | “效率应该会稳定在1200(3600/3)左右” 改为 “效率应该会稳定在1800(xRayCheckTmCost * 30 / 3)左右” | 未改 |
38+
| 28 | Go语言精进之路vol1 | p324,具体参见[issue28](https://github.com/bigwhite/GoProgrammingFromBeginnerToMaster/issues/28) | p324源码go-concurrency-pattern-5.go中的 worker goroutine在收到quit后并未立即退出 | https://github.com/ptgeft | 内容错误 | p324源码go-concurrency-pattern-5.go中的源码quit <- "ok" 的下一行应增加return | 源码库已改,但纸版书中尚未修改 |

0 commit comments

Comments
 (0)