Skip to content

Commit da5d3cc

Browse files
committed
Rename macros
1 parent 496be3a commit da5d3cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

posts/2018-12-21-Procedural-Macros-in-Rust-2018.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ layman's terms, a function that takes a piece of syntax at compile time and
2121
produces a new bit of syntax. Procedural macros in Rust 2018 come in one of
2222
three flavors:
2323

24-
* **Procedural `#[derive]` macros** have actually been stable since [Rust 1.15]
24+
* **`#[derive]` mode macros** have actually been stable since [Rust 1.15]
2525
and bring all the goodness and ease of use of `#[derive(Debug)]` to
2626
user-defined traits as well, such as [Serde]'s `#[derive(Deserialize)]`.
2727

28-
* **Procedural bang macros** are new to the 2018 edition and allow defining
28+
* **Function-like macros** are new to the 2018 edition and allow defining
2929
macros like `env!("FOO")` or `format_args!("...")` in a crate.io-based
3030
library. You can think of these as sort of "`macro_rules!` macros" on
3131
steroids.
3232

33-
* **Procedural attribute macros**, my favorite, are also new in the 2018 edition
33+
* **Attribute macros**, my favorite, are also new in the 2018 edition
3434
and allow you to provide lightweight annotations on Rust functions which
3535
perform syntactical transformations over the code at compile time.
3636

0 commit comments

Comments
 (0)