diff options
| author | bors <bors@rust-lang.org> | 2015-11-02 14:41:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-11-02 14:41:31 +0000 |
| commit | 033e142915e5d6ff3ec24275810f860530e2edc4 (patch) | |
| tree | 55b16135c2158a04a35ac641a764fb28716f547b | |
| parent | 5b11b286bc1b8cbb603c6ffd47e53a3f6fd5a475 (diff) | |
| parent | 6e5d78dba37d3f1723bd62f5026ea46b7e867caa (diff) | |
| download | rust-033e142915e5d6ff3ec24275810f860530e2edc4.tar.gz rust-033e142915e5d6ff3ec24275810f860530e2edc4.zip | |
Auto merge of #29518 - KyleMayes:master, r=apasel422
Fixes one of the `expr` examples to be a correct expression r? @steveklabnik
| -rw-r--r-- | src/doc/trpl/macros.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/macros.md b/src/doc/trpl/macros.md index d74cd6d0d35..f7f27858cd2 100644 --- a/src/doc/trpl/macros.md +++ b/src/doc/trpl/macros.md @@ -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`. |
