mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Update index.md
This commit is contained in:
parent
a78be01124
commit
a0cd6aa160
@ -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 New Issue
Block a user