diff --git a/_posts/2018-10-25-Rust-1.30.0.md b/_posts/2018-10-25-Rust-1.30.0.md index 29648e151..f4b3303f6 100644 --- a/_posts/2018-10-25-Rust-1.30.0.md +++ b/_posts/2018-10-25-Rust-1.30.0.md @@ -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)] @@ -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