Turn lua into luau

Co-authored-by: ariel <aweiss@hey.com>
This commit is contained in:
ffrostfall 2025-02-04 00:24:20 -05:00 committed by GitHub
parent 74c149b534
commit 05e396d4b9
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ Implement type functions for `getmetatable` and `setmetatable`.
There is currently no way for users to apply metatable type information to a type without the usage of `typeof()`. This isn't ideal, as it adds verbosity and boilerplate to common patterns such as object-oriented programming. For example, the following:
```lua
```luau
local clock = {}
type Identity = typeof(setmetatable({} :: { time: number }, { __index = clock }))
```