summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSam Scott <sam.scott89@gmail.com>2017-05-20 22:07:44 +0100
committerSam Scott <sam.scott89@gmail.com>2017-05-20 22:07:44 +0100
commit6e71ba43eb6bd62f2b567224e387333016bd3a5c (patch)
treefacec78176a03f5df9124949f7043188224e370c /examples
parenta810aff7ab7891579d69fcdffefeaca3835ce533 (diff)
Rewrite of most components.
Simplify `ser` logic, and expand `de` functionality.
Diffstat (limited to 'examples')
-rw-r--r--examples/introduction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/introduction.rs b/examples/introduction.rs
index a8e984f..fb70665 100644
--- a/examples/introduction.rs
+++ b/examples/introduction.rs
@@ -131,7 +131,7 @@ fn main() {
// Enums are supported, but only adjacently tagged enums
// (see https://serde.rs/enum-representations.html for more information).
#[derive(Deserialize, Debug, PartialEq, Serialize)]
- #[serde(tag = "type", content = "value")]
+ // #[serde(tag = "type", content = "value")]
enum AdjTaggedEnum {
B(bool),
S(String),