Skip to content

Conversation

@GearsDatapacks
Copy link
Member

@GearsDatapacks GearsDatapacks commented Nov 12, 2025

Fixes #4758
This PR adds a warning for when a regular comment is placed between a doc comment and a definition, causing it to not attach to the definition.
I'm still not totally sure on the wording of the warning, so let me know what you think

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you!

@lpil lpil merged commit f0cd386 into gleam-lang:main Nov 18, 2025
12 checks passed
@GearsDatapacks GearsDatapacks deleted the warn-for-detached-doc-comments branch November 18, 2025 14:52
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.

Prevent doc comments from being broken by misplaced comments

2 participants