diff --git a/macros/src/types/enum.rs b/macros/src/types/enum.rs index f5ccf63dd..0cfcfd9b2 100644 --- a/macros/src/types/enum.rs +++ b/macros/src/types/enum.rs @@ -140,8 +140,8 @@ fn format_variant( // To be flattened, an internally tagged enum must not be // surrounded by braces, otherwise each variant will look like // { "tag": "name", { /* ...data */ } } - // - // which is invalid since there is no key before the brackets + // when we want it to look like + // { "tag": "name", /* ...data */ } #inline_flattened.trim_matches(&['{', '}', ' ']) ) },