Clarify macro names with quotes

Inspired by jnqnfe. Thanks!
This commit is contained in:
Carol (Nichols || Goulding) 2018-11-01 21:38:43 -04:00
parent c3465433d2
commit 8fb52b8d2c
No known key found for this signature in database
GPG Key ID: D04B39A6CA243902
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ can define functions anywhere and call them anywhere.
### Declarative Macros with `macro_rules!` for General Metaprogramming
The most widely used form of macros in Rust are *declarative macros*. These are
also sometimes referred to as *macros by example*, *`macro_rules!` macros*, or
just plain *macros*. At their core, declarative macros allow you to write
also sometimes referred to as “macros by example”, “`macro_rules!` macros”, or
just plain “macros”. At their core, declarative macros allow you to write
something similar to a Rust `match` expression. As discussed in Chapter 6,
`match` expressions are control structures that take an expression, compare the
resulting value of the expression to patterns, and then run the code associated