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

[第三章]给出的注释有点问题 #297

Open
DaviRain-Su opened this issue Aug 5, 2020 · 1 comment
Open

[第三章]给出的注释有点问题 #297

DaviRain-Su opened this issue Aug 5, 2020 · 1 comment
Labels
第三章 第三章

Comments

@DaviRain-Su
Copy link

/// assert_eq!(sum(a, b), 3); // a和b的类型会自动推断为i32

应该是a推导为u32, b推导为i32。
vec 会自动推断为Vec

@ZhangHanDong
Copy link
Owner

@DaviRain-Su 感谢反馈,这个估计是笔误。

@ZhangHanDong ZhangHanDong added the 第三章 第三章 label Aug 5, 2020
@ZhangHanDong ZhangHanDong changed the title 给出的注释有点问题 [第三章]给出的注释有点问题 Aug 5, 2020
@ZhangHanDong ZhangHanDong added this to the 第八次印刷 milestone Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
第三章 第三章
Projects
None yet
Development

No branches or pull requests

2 participants