Skip to content

Commit e02b4da

Browse files
committed
Fixed the confusion around expression and the block expression of while let
1 parent 1055990 commit e02b4da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expressions/loop-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ while i < 10 {
7474
7575
A `while let` loop is semantically similar to a `while` loop but in place of a
7676
condition expression it expects the keyword `let` followed by a refutable
77-
pattern, an `=` and a block expression. If the value of the expression on the right
78-
hand side of the `=` matches the pattern, the loop body block executes then
77+
pattern, an `=`, an expression and a block expression. If the value of the expression on
78+
the right hand side of the `=` matches the pattern, the loop body block executes then
7979
control returns to the pattern matching statement. Otherwise, the while
8080
expression completes.
8181

0 commit comments

Comments
 (0)