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

Fix invisible doccomments at the start of source files to make them visible #22573

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sorairolake
Copy link
Contributor

When I was looking at lib/std/compress/flate/Lookup.zig and lib/std/zip.zig in https://ziglang.org/documentation/master/std/, I noticed that the doc comments at the start of them were not visible.

I think it would be better if these doc comments is top-level doc comments rather than doc comments. Because it is at the start of the source file. Also, given the context, I don't think these are doc comments for const std = @import("std"); and const builtin = @import("builtin");. This makes these doc comments visible.

However, the last paragraph of doc comments in lib/std/zip.zig replaces doc comments with normal comments. This is because I thought that normal comments would be more appropriate than top-level doc comments given the context of the last paragraph.

…vel doc comments

I think it would be better if this invisible doc comments is top-level
doc comments rather than doc comments. Because it is at the start of a
source file. This makes the doc comments visible.
I think it would be better if this invisible doc comments is top-level
doc comments rather than doc comments. Because it is at the start of a
source file. This makes the doc comments visible.

However, the last paragraph replaces doc comments with normal comments.
This is because I thought that normal comments would be more
appropriate than top-level doc comments given the context of the last
paragraph.
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.

1 participant