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

Return from loop is not metioned as well as loop labels #994

Closed
Yanpas opened this issue Nov 8, 2017 · 1 comment
Closed

Return from loop is not metioned as well as loop labels #994

Yanpas opened this issue Nov 8, 2017 · 1 comment

Comments

@Yanpas
Copy link

Yanpas commented Nov 8, 2017

It seems that return form loop is not mentioned.

let a = loop {
	break 1;
};

There is no metion for loop labels too

@carols10cents
Copy link
Member

Returning from a loop is covered in the newest features appendix; it was added to Rust after we froze chapter 3 for print.

The newest features appendix will be incorporated into chapter 3 in a future version. Thanks!

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