Skip to content

Commit

Permalink
Add bit32.byteswap to Luau standard library (#567)
Browse files Browse the repository at this point in the history
Adds bit32.byteswap to the Luau standard library.
  • Loading branch information
Dekkonot authored Nov 8, 2023
1 parent 2df3dd5 commit a38a7bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Added `no-exclude` cli flag to disable excludes.
- When given in standard library format, additional information now shows up in `incorrect_standard_library_use` missing required parameter errors.
- Added new [`mixed_table` lint](https://kampfkarren.github.io/selene/lints/mixed_table.html), which will warn against mixed tables.
- Added `bit32.byteswap` to Luau standard library

### Fixed
- `string.pack` and `string.unpack` now have proper function signatures in the Lua 5.3 standard library.
Expand Down
4 changes: 4 additions & 0 deletions selene-lib/default_std/luau.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ globals:
args:
- type: "..."
must_use: true
bit32.byteswap:
args:
- type: number
must_use: true
bit32.countlz:
args:
- type: number
Expand Down

0 comments on commit a38a7bf

Please sign in to comment.