Skip to content

rustdoc should understand javadoc-style comments #2498

Closed
@brson

Description

@brson

Both /** ... */ and /// syntaxes.

It should be relatively simple to write a rustdoc pass to pull out these comments. The only complications are that we need to heuristically associate comments with AST nodes, and we have to be able to identify and strip the common wall of stars:

/**
 *
 * <- these stars are not part of the documentation
 *
 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions