serde-rs / serde-rs.github.io

https://serde.rs
Creative Commons Attribution Share Alike 4.0 International
22 stars 96 forks source link

Fix description of internally tagged enum representation #137

Closed ghost closed 2 years ago

ghost commented 2 years ago

Using a #[serde(tag = "...")] attribute on an enum containing a tuple variant is an error at compile time.

The above description should be fixed with this:

Using a #[serde(tag = "...")] attribute on an enum containing a tuple variant will cause panic without any compile error.