From a0cd6aa160564ae59cdfd493a53cd2abd66e66bf Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 5 Aug 2020 16:07:44 -0700 Subject: [PATCH] Update index.md --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 7a38457..c4ac005 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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