"flags" is meaningless #67
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags#67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This threw me off when reading the bitflags documentation for the first time.
I know it is not a keyword because my IDE does not highlight it like one. The casing suggests that it is a variable name or module name. Nope, it is a nugatory token required by the macro.
I think the important relevant thing to communicate to readers is that a type with the given name is being declared by the macro. Either of the following would be far more valuable I think.
Let's change this to "struct". We don't need to preserve backwards compatibility.
@brson so I have to change
flagstostructhere and here right?@vedantrathore yes, but those locations are only in documentation. The most important place to change is in the macro defenition itself, like here and here and here.
Once you've changed the macro definition, run
cargo test. That will test the macro and the documentation examples. If the tests pass you are likely done and can submit a PR. Sorry for taking so long to get back to you. Feel free to ping me on IRC on send an email to get ahold of me faster.@brson no problem :) thanks for the info, I'll get onto it.
I believe this issue can be closed now, see #84.