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

Clarify that flags are bitwise, and that FlagDeleted is non-zero. #43

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Clarify that flags are bitwise, and that FlagDeleted is non-zero. #43

merged 1 commit into from
Jun 11, 2019

Conversation

creachadair
Copy link
Contributor

This commit has no functional change, it only clarifies the documentation of
header flags. Specifically:

  • Add a missing doc comment to the exported Flag type declaration.

  • Consolidate the declaration of FlagDeleted so it is more obvious to the
    reader in godoc that it is non-zero. This also ensures that if we add more
    enumerators later, they will shift correctly.

This commit has no functional change, it only clarifies the documentation of
header flags. Specifically:

- Add a missing doc comment to the exported Flag type declaration.

- Consolidate the declaration of FlagDeleted so it is more obvious to the
  reader in godoc that it is non-zero. This also ensures that if we add more
  enumerators later, they will shift correctly.

Signed-off-by: M. J. Fromberger <[email protected]>
@creachadair
Copy link
Contributor Author

Ping @mcuadros @smola @ajnavarro, this is a minor documentation cleanup, any objections if I merge it?

@mcuadros mcuadros merged commit 3ceaa84 into src-d:master Jun 11, 2019
@creachadair creachadair deleted the flagdoc branch June 12, 2019 05:33
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.

4 participants