Skip to content

Commit

Permalink
update errata, to fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
bigwhite committed Apr 29, 2022
1 parent 6481037 commit 8b4c602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errata.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
| 8 | Go语言精进之路vol2(微信读书电子版) | 第47条 和 第49条,具体参见[issue6](https://github.com/bigwhite/GoProgrammingFromBeginnerToMaster/issues/6) | html字符被转义了,影响阅读体验 | AVOlili(https://github.com/AVOlili) | 编辑错误 | 等待微信读书渠道编辑去掉转义,恢复html字符原貌 |
| 9 | Go语言精进之路vol1 | p97 | chapter3/sources/map_stable_iterate.go示例代码通过range map给切片赋值可能会给大家带去误解| feng zhao ([email protected]) | 表达不清| 这个例子中用切片保存是第一次map迭代的元素order。我的原意并非一定是按照1, 2, 3的顺序保存,只是要保证后续的iterate order都与第一次相同即可。只是在我的机器上第一次iterate的order恰好是 1,2,3的顺序。不过这个例子的确会给大家带去困惑。后续如果再版,会在这处做出说明 |
| 10 | Go语言精进之路vol1 | p161 | for_range_bench_test.go的输出结果与结论有悖 | 324127863([email protected]) | 内容错误 | for range数组性能好的原因与Go编译器根据数组元素大小进行的优化有关。可以参考一下[这篇文章](https://tonybai.com/2022/03/19/for-range-vs-classic-for-loop-when-iterating-large-array) |
| 11 | Go语言精进之路vol1 | p103 | 示例代码有误,具体参见[issue 9](https://github.com/bigwhite/GoProgrammingFromBeginnerToMaster/issues/9) | liansyyy(https://github.com/liansyyy) | typo | 应改为 p := &m[key] |

0 comments on commit 8b4c602

Please sign in to comment.