Skip to content

Fix JSDoc formatting for Rust block comments#342

Merged
gustavo-shigueo merged 2 commits intomainfrom
block_doc_comments
Jul 25, 2024
Merged

Fix JSDoc formatting for Rust block comments#342
gustavo-shigueo merged 2 commits intomainfrom
block_doc_comments

Conversation

@gustavo-shigueo
Copy link
Copy Markdown
Collaborator

Goal

Properly handle block doc comments
Closes #341

Changes

Change the parse_doc function to print a doc comment as is if it is contained in a single #[doc = "..."] attribute and contains multiple lines.

Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

@gustavo-shigueo gustavo-shigueo merged commit e08161c into main Jul 25, 2024
@gustavo-shigueo gustavo-shigueo deleted the block_doc_comments branch July 25, 2024 18:20
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

Successfully merging this pull request may close these issues.

parse_docs doesn't handle block doc comments properly

1 participant