Skip to content

Commit

Permalink
Minor fix to Rust Book, Macros chapter
Browse files Browse the repository at this point in the history
Fixes one of the `expr` examples to be a proper expression
  • Loading branch information
KyleMayes committed Nov 2, 2015
1 parent 5b11b28 commit 6e5d78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/macros.md
Expand Up @@ -464,7 +464,7 @@ which syntactic form it matches.

* `ident`: an identifier. Examples: `x`; `foo`.
* `path`: a qualified name. Example: `T::SpecialA`.
* `expr`: an expression. Examples: `2 + 2`; `if true then { 1 } else { 2 }`; `f(42)`.
* `expr`: an expression. Examples: `2 + 2`; `if true { 1 } else { 2 }`; `f(42)`.
* `ty`: a type. Examples: `i32`; `Vec<(char, String)>`; `&T`.
* `pat`: a pattern. Examples: `Some(t)`; `(17, 'a')`; `_`.
* `stmt`: a single statement. Example: `let x = 3`.
Expand Down

0 comments on commit 6e5d78d

Please sign in to comment.