Skip to content

Commit 033e142

Browse files
committed
Auto merge of #29518 - KyleMayes:master, r=apasel422
Fixes one of the `expr` examples to be a correct expression r? @steveklabnik
2 parents 5b11b28 + 6e5d78d commit 033e142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ which syntactic form it matches.
464464

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

0 commit comments

Comments
 (0)