From fd974c467db9fcbdbfe7944231b96300bb9fe961 Mon Sep 17 00:00:00 2001 From: boyned//Kampfkarren Date: Mon, 20 May 2024 19:29:08 -0700 Subject: [PATCH] Fix type --- docs/syntax-key-destructuring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/syntax-key-destructuring.md b/docs/syntax-key-destructuring.md index ee3a338..303e6f0 100644 --- a/docs/syntax-key-destructuring.md +++ b/docs/syntax-key-destructuring.md @@ -115,7 +115,7 @@ local b: number = t.b Without explicit types, local assignments and for loops will assume the type of `.`. For example... ```lua -- x and y will both be typed `number` here -local { .x, .y } = position :: { number } +local { .x, .y } = position :: { x: number, y: number } ``` Additionally, you can specify a type on the "table" as a whole.