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

switch缺少break的问题 #306

Open
WuZhixu opened this issue May 6, 2019 · 2 comments
Open

switch缺少break的问题 #306

WuZhixu opened this issue May 6, 2019 · 2 comments

Comments

@WuZhixu
Copy link

WuZhixu commented May 6, 2019

image

缺少个break看起来是个bug?

@KrisMarko
Copy link

作者是想第一个case满足的时,也穿透执行下一个case的代码块。

@zzzz-123
Copy link

zzzz-123 commented Jul 2, 2019

image

缺少个break看起来是个bug?

Here the author forgot to write break, but don't worry, it won't cause bugs, because it will then execute the break into the default.

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

3 participants