Skip to content

incorrect example in README #34

Closed
Closed
@hmoffatt

Description

In the README, you have

$mask ^= EXECUTE; // remove a single bit from the $mask

This does not remove a single bit in the general case - xor toggles it. It only removes it if you know it's already set.

The general way to remove is

$mask &= ~EXECUTE;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions