From 7ed152276f4b6fe6d4138ed5e9d729b2b83c352d Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Mon, 6 Jan 2020 16:27:05 +0100 Subject: [PATCH] Fix typo in arbitrary-data-with-serde.md (#1923) --- guide/src/reference/arbitrary-data-with-serde.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/reference/arbitrary-data-with-serde.md b/guide/src/reference/arbitrary-data-with-serde.md index 9d1109f5..87f4ab93 100644 --- a/guide/src/reference/arbitrary-data-with-serde.md +++ b/guide/src/reference/arbitrary-data-with-serde.md @@ -34,7 +34,7 @@ extern crate serde_derive; ## Derive the `Serialize` and `Deserialize` Traits -Add `#![derive(Serialize, Deserialize)]` to your type. All of your type's +Add `#[derive(Serialize, Deserialize)]` to your type. All of your type's members must also be supported by Serde, i.e. their types must also implement the `Serialize` and `Deserialize` traits.