Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation comments appear in reversed order. #27

Closed
regexident opened this issue Sep 22, 2016 · 2 comments
Closed

Documentation comments appear in reversed order. #27

regexident opened this issue Sep 22, 2016 · 2 comments

Comments

@regexident
Copy link

This …

struct Lorem {
    /// This is a doc comment for a field
    ///
    /// This is a second comment line
    field_with_doc_comment: String,
    ...
}

… turns into this …

struct Lorem {
    #[doc = r" This is a second comment line"]
    #[doc = r""]
    #[doc = r" This is a doc comment for a field"]
    field_with_doc_comment: String,
    ...
}

… when building with --pretty=expanded.

They then appear in the same reversed order within the HTML documents (via $ cargo doc).

@colin-kiegel
Copy link
Owner

Oops, we indeed missed that ^^

Thanks for the report.

As a workaround you could restrict your documentation to palindromes in the meantime.. just kidding.

@colin-kiegel
Copy link
Owner

fixed in v0.2.1 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants