# more intuitive left shift and right shift operators · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/35d3444e2742faa3c2e805cdcbfeceaf0287eefc)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 35d3444e2742faa3c2e805cdcbfeceaf0287eefc

Requested commit: 35d3444e2742faa3c2e805cdcbfeceaf0287eefc

Commit: 35d3444e2742faa3c2e805cdcbfeceaf0287eefc

Tree: 408182308c5f962660f200c59b2619be8d194ffc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
more intuitive left shift and right shift operators

Before:
 * << is left shift, not allowed to shift 1 bits out
 * <<% is left shift, allowed to shift 1 bits out
 * >> is right shift, allowed to shift 1 bits out

After:
 * << is left shift, allowed to shift 1 bits out
 * >> is right shift, allowed to shift 1 bits out
 * @shlExact is left shift, not allowed to shift 1 bits out
 * @shrExact is right shift, not allowed to shift 1 bits out

Closes #413

```

## Parents

- [54675b060ae6139f60e111521b9a2688f66977a0](https://git.cafe/gitcafe/zig/commit/54675b060ae6139f60e111521b9a2688f66977a0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/35d3444e2742faa3c2e805cdcbfeceaf0287eefc?format=markdown)
