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

书第11页枚举和第12页调用的switch case不一致 #12

Open
fokman opened this issue Feb 6, 2021 · 0 comments
Open

书第11页枚举和第12页调用的switch case不一致 #12

fokman opened this issue Feb 6, 2021 · 0 comments

Comments

@fokman
Copy link

fokman commented Feb 6, 2021

书中第11页const 枚举使用的是大写字母加下划线,但是第12页使用的switch mode 里面的判断使用的是大写英文, 两边定义不一致
第11页:
const {
MODE_UPPER,
....
}
第12页:
switch mode {
case ModeUpper:
....
}

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

1 participant