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

纸质第一册 P89 chapter3/sources/slice_unbind_orig_array.go代码中数组u初始化有笔误 #13

Closed
jackbai233 opened this issue May 11, 2022 · 1 comment

Comments

@jackbai233
Copy link

jackbai233 commented May 11, 2022

按照书中上下文与代码中的打印描述, 代码中的变量 u应为数组,故初始化应为:u := [5]int{11, 12, 13, 14, 15}u := [...]int{11, 12, 13, 14, 15}。 书中为u := []int{11, 12, 13, 14, 15}

@bigwhite
Copy link
Owner

感谢指出,已更新到勘误,并更新了slice_unbind_orig_array.go源码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants