Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ variable, or shadow an existing one.

## Update Assignment

`+=`, `-=`, `/=`, `*=`, `%=`, `..=`, `or=`, `and=` operators have been added
for updating and assigning at the same time. They are aliases for their
expanded equivalents.
`+=`, `-=`, `/=`, `*=`, `%=`, `..=`, `or=`, `and=`, `&=`, `|=`, `>>=`, and
`<<=` operators have been added for updating and assigning at the same time.
They are aliases for their expanded equivalents.

```moon
x = 0
Expand All @@ -68,6 +68,12 @@ s ..= "world"

b = false
b and= true or false

p = 50
p &= 5
p |= 3
p >>= 3
p <<= 3
```

## Comments
Expand Down