mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 21:10:37 +00:00
Update index.md
This commit is contained in:
parent
a78be01124
commit
a0cd6aa160
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ Luau is a fast, small, safe, gradually typed embeddable scripting language deriv
|
|||
```lua
|
||||
type Point = { x: number, y: number }
|
||||
|
||||
local p = { x = 1, y = 2 }
|
||||
local p: Point = { x = 1, y = 2 }
|
||||
|
||||
print(p.x, p.y)
|
||||
-- print(p.z) results in a type error
|
||||
|
|
Loading…
Reference in a new issue