From 477d7911f03650929faddd3ce156544d9b1cddec Mon Sep 17 00:00:00 2001 From: Junseo Yoo <59751754+joonyoo181@users.noreply.github.com> Date: Fri, 31 May 2024 09:40:59 -0700 Subject: [PATCH] Update docs/index-type-operator.md Small change: reworded "syntax" to "type arguments" Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com> --- docs/index-type-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index-type-operator.md b/docs/index-type-operator.md index 51880d5..2cefc3e 100644 --- a/docs/index-type-operator.md +++ b/docs/index-type-operator.md @@ -52,7 +52,7 @@ type idxType2 = index -- idxType2 = number | string Now, the type of `doSmt()`'s parameter can be defined without declaring a variable `bob`. Additionally, regardless of how the type `Person` grows, `idxType` will always be defined as the union of all the properties. -Error messages will be displayed for incorrect syntax. If the given type used to access a property is invalid, +Error messages will be displayed for incorrect type arguments. If the given type used to access a property is invalid, ```lua type age = index -- Error message: Property 'ager' does not exist on type 'Person'. ```