Skip to content

How to make a documentation for the super enum without sharing it with the sub enum? #43

@KSXGitHub

Description

@KSXGitHub

If I do this and run cargo doc, the description of SuperEnum would be appended to the description of SubEnum.

/// super enum.
#[subenum(SubEnum(doc = "sub enum."))]
pub enum SuperEnum {
    #[subenum(SubEnum)]
    Foo,
}

The docs would show this:

SuperEnum — super enum.
SubEnum — sub enum. super enum.

This is not a desired behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions