Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Typos on reference manual #1845

Merged
merged 2 commits into from

2 participants

@mernen

The grammar regarding If expressions on the reference manual (section 6.2.20 as of now) has a few errors:

  • The closing bracket for else_tail is an unfinished literal
  • There are two else keywords there
@graydon graydon merged commit 79c1ab2 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 15, 2012
  1. @mernen
  2. @mernen

    Duplicate keyword

    mernen authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/rust.md
View
4 doc/rust.md
@@ -1952,10 +1952,10 @@ for e: foo in v {
~~~~~~~~{.ebnf .gram}
if_expr : "if" expr '{' block '}'
- [ "else" else_tail ] ? ;
+ else_tail ? ;
else_tail : "else" [ if_expr
- | '{' block '} ] ;
+ | '{' block '}' ] ;
~~~~~~~~
An `if` expression is a conditional branch in program control. The form of
Something went wrong with that request. Please try again.