Skip to content

Commit 79c1ab2

Browse files
committed
Merge pull request #1845 from mernen/master
Typos on reference manual
2 parents d6d7134 + 06658b4 commit 79c1ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,10 +1952,10 @@ for e: foo in v {
19521952

19531953
~~~~~~~~{.ebnf .gram}
19541954
if_expr : "if" expr '{' block '}'
1955-
[ "else" else_tail ] ? ;
1955+
else_tail ? ;
19561956
19571957
else_tail : "else" [ if_expr
1958-
| '{' block '} ] ;
1958+
| '{' block '}' ] ;
19591959
~~~~~~~~
19601960

19611961
An `if` expression is a conditional branch in program control. The form of

0 commit comments

Comments
 (0)