Skip to content

Commit

Permalink
Fixed the confusion around expression and the block expression of whi…
Browse files Browse the repository at this point in the history
…le let
  • Loading branch information
brauliobz committed Oct 14, 2017
1 parent 1055990 commit e02b4da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expressions/loop-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ while i < 10 {
A `while let` loop is semantically similar to a `while` loop but in place of a
condition expression it expects the keyword `let` followed by a refutable
pattern, an `=` and a block expression. If the value of the expression on the right
hand side of the `=` matches the pattern, the loop body block executes then
pattern, an `=`, an expression and a block expression. If the value of the expression on
the right hand side of the `=` matches the pattern, the loop body block executes then
control returns to the pattern matching statement. Otherwise, the while
expression completes.

Expand Down

0 comments on commit e02b4da

Please sign in to comment.