Skip to content

Conversation

@sunfishcode
Copy link
Member

Switch to /// for printing documentation comments.

Per the discussion in WebAssembly/component-model#286, switch to ///
for documentation comments in the Wit printer.

// comments are still accepted and interpreted as documentation
comments for now.

And update the copy of wasi-http in the tests, to a newer version that uses /// doc comments.

Per the discussion in WebAssembly/component-model#286, switch to `///`
for documentation comments in the Wit printer.

`//` comments are still accepted and interpreted as documentation
comments for now.
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks!

Would you be up for implementing a warning as well for usage of //? It's not something we would enable just yet by default but it'd be good to go ahead and get the code in so it can be opted-in to if desired.

@alexcrichton alexcrichton merged commit a3f8c60 into bytecodealliance:main Jan 5, 2024
@sunfishcode sunfishcode deleted the sunfishcode/doc-comments branch January 8, 2024 23:02
yamt added a commit to yamt/wasi-sensor-discussion that referenced this pull request Jan 12, 2024
wit-parser 1.3.1 contains a breaking change [1], which
made our CI fail with "found doc comments on multiple 'package' items".
(i guess they should not have made such a breaking change in
a patch version.)

as the wit spec is going to retire non-doc comments,
this commit retires all non-doc comments in our wit files.
(either by removing them or switching them to doc comments.)

[1] bytecodealliance/wasm-tools#1357
yamt added a commit to midokura/wasi-sensor-discussion that referenced this pull request Jan 17, 2024
wit-parser 1.3.1 contains a breaking change [1], which
made our CI fail with "found doc comments on multiple 'package' items".
(i guess they should not have made such a breaking change in
a patch version.)

as the wit spec is going to retire non-doc comments,
this commit retires all non-doc comments in our wit files.
(either by removing them or switching them to doc comments.)

[1] bytecodealliance/wasm-tools#1357
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.

2 participants