Skip to content

Commit ef10df1

Browse files
Merge #502
502: add while loop syntax fix r=Veykril a=nefelitav According to the Rust Reference, "while loop expressions", as well as "if expressions" should accept any expression except struct expressions (SubjectExpression). So, this must be more accurate. Co-authored-by: nefelitav <[email protected]>
2 parents 342ea80 + ce0f734 commit ef10df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3870,7 +3870,7 @@ While Loops
38703870
$$while$$ IterationExpression LoopBody
38713871

38723872
IterationExpression ::=
3873-
Expression
3873+
SubjectExpression
38743874

38753875
.. rubric:: Legality Rules
38763876

0 commit comments

Comments
 (0)