Update index.md

This commit is contained in:
Arseny Kapoulkine 2020-08-05 16:07:44 -07:00 committed by GitHub
parent a78be01124
commit a0cd6aa160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ Luau is a fast, small, safe, gradually typed embeddable scripting language deriv
```lua ```lua
type Point = { x: number, y: number } 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.x, p.y)
-- print(p.z) results in a type error -- print(p.z) results in a type error