-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Clear up the reference around let #29889
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
Conversation
r? @Manishearth (rust_highfive has picked a reviewer for you, use r? to override) |
loop body block executes and control returns to the pattern matching statement. | ||
Otherwise, the while expression completes. | ||
A `while let` loop is semantically identical to a `while` loop but in place of | ||
a condition expression it expects `let` statement with a refuatble pattern. If |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
speling
r=me once the spelling is fixed |
88a0da0
to
9ecdaa7
Compare
@bors: r=manishearth rollup |
📌 Commit 9ecdaa7 has been approved by |
expression on the right hand side of the let statement matches the pattern, the corresponding | ||
block will execute, otherwise flow proceeds to the first `else` block that follows. | ||
An `if let` expression is semantically identical to an `if` expression but in | ||
place of a condition expression it expects a `let` statement with a refuatble |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: refuatable --> refutable
9ecdaa7
to
cf384c2
Compare
@bors: r=manishearth rollup |
📌 Commit cf384c2 has been approved by |
First, re-word the section on if let/while let to be more clear. Second, actually call them let statements in the statement section Fixes rust-lang#29801
First, re-word the section on if let/while let to be more clear. Second, actually call them let statements in the statement section Fixes rust-lang#29801
First, re-word the section on if let/while let to be more clear. Second, actually call them let statements in the statement section Fixes rust-lang#29801
First, re-word the section on if let/while let to be more clear.
Second, actually call them let statements in the statement section
Fixes #29801