Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _posts/2018-10-25-Rust-1.30.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ of "Rust 2018." For more on that concept, please see our previous post
## Procedural Macros

Way back in [Rust 1.15], we announced the ability to define "custom derives." For example,
with `serde_json`, you could
with `serde_derive`, you could

```rust
#[derive(Serialize, Deserialize, Debug)]
Expand All @@ -40,8 +40,8 @@ struct Pet {
}
```

And convert a `Pet` to and from JSON because `serde_json` defined `Serialize` and
`Deserialize` in a procedural macro.
And convert a `Pet` to and from JSON using `serde_json` because `serde_derive`
defined `Serialize` and `Deserialize` in a procedural macro.

Rust expands on this by adding the ability to define two other kinds of
advanced macros, "attribute-like procedural macros" and "function-like
Expand Down