Skip to content

Commit 5cd2f36

Browse files
committed
Update default Lua version
The readme incorrectly stated Lua 5.4 was the default.
1 parent 23f0f1d commit 5cd2f36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Example code is included in the [examples](https://github.com/natecraddock/ziglu
2323
* Install an example with `zig build install-example-<name>`
2424

2525
## Why use Ziglua?
26-
In a nutshell, Ziglua is a simple wrapper around the C API you would get by using Zig's `@cImport()`. Ziglua aims to mirror the [Lua C API](https://www.lua.org/manual/5.5/manual.html#4) as closely as possible, while improving ergonomics using Zig's features. For example:
26+
Ziglua is a simple wrapper around the C API. Ziglua aims to mirror the [Lua C API](https://www.lua.org/manual/5.5/manual.html#4) as closely as possible, while improving ergonomics using Zig's features. For example:
2727

2828
* Zig error unions to require failure state handling
2929
* Null-terminated slices instead of C strings
@@ -63,7 +63,7 @@ This will compile the Lua C sources and link with your project.
6363

6464
There are currently three additional options that can be passed to `b.dependency()`:
6565

66-
* `.lang`: Set the Lua language to build and embed. Defaults to `.lua54`. Possible values are `.lua51`, `.lua52`, `.lua53`, `.lua54`, `.lua55`, and `luau`.
66+
* `.lang`: Set the Lua language to build and embed. Defaults to `.lua55`. Possible values are `.lua51`, `.lua52`, `.lua53`, `.lua54`, `.lua55`, and `luau`.
6767
* `.shared`: Defaults to `false` for embedding in a Zig program. Set to `true` to dynamically link the Lua source code (useful for creating shared modules).
6868
* `luau_use_4_vector`: defaults to false. Set to true to use 4-vectors instead of the default 3-vector in Luau.
6969
* `lua_user_h`: defaults to null. Provide a path to an additional header file for the Lua compilation. Must be set to to `examples/user.h` in order to run the multithreaded example.

0 commit comments

Comments
 (0)