Skip to content

Commit e7be70a

Browse files
authored
Merge pull request #283 from killercup/patch-6
be more precise about serde_{derive,json}
2 parents 52c5868 + b3935b5 commit e7be70a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2018-10-25-Rust-1.30.0.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ of "Rust 2018." For more on that concept, please see our previous post
3131
## Procedural Macros
3232

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

3636
```rust
3737
#[derive(Serialize, Deserialize, Debug)]
@@ -40,8 +40,8 @@ struct Pet {
4040
}
4141
```
4242

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

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

0 commit comments

Comments
 (0)