From 6e5d78dba37d3f1723bd62f5026ea46b7e867caa Mon Sep 17 00:00:00 2001 From: Kyle Mayes Date: Mon, 2 Nov 2015 08:52:05 -0500 Subject: [PATCH] Minor fix to Rust Book, Macros chapter Fixes one of the `expr` examples to be a proper expression --- src/doc/trpl/macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/macros.md b/src/doc/trpl/macros.md index d74cd6d0d35b..f7f27858cd24 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`.