-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Confusing term for loop labels in reference doc #17716
Comments
This is usually called a lifetime, but yeah, maybe that's not the best name. |
Yeah, I just noticed that the parser function is called |
Given that this name is currently the correct one, I'm giving this a close. If we have a specific way to improve this, we can entertain the notion, but right now, that's the name. |
…Veykril assist: Add new assist toggle_macro_delimiter Closes rust-lang#17716
The grammar in the reference for
loop
(http://doc.rust-lang.org/reference.html#infinite-loops) uses the word "lifetime" to describe the label, but given that "lifetime" is term that means something very different, it's a little confusing.Additionally, judging by https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/parser.rs#L2162-L2176, for loops and while loops also support labels, but that isn't mentioned for them.
The text was updated successfully, but these errors were encountered: