From fd8f36cd8a21ebd1bb2d9dfffe658693b4d57932 Mon Sep 17 00:00:00 2001 From: Junseo Yoo <59751754+joonyoo181@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:01:16 -0700 Subject: [PATCH] Reworded for better clarity Co-authored-by: aaron --- 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 6cafd65..5464591 100644 --- a/docs/index-type-operator.md +++ b/docs/index-type-operator.md @@ -76,7 +76,7 @@ type idxType3 = index -- idxType3 = number | string type idxType4 = index -- Error message: Property '"age" | "alive"' does not exist on type 'Person | Person2' ``` -In the circumstance that the indexee is a type class or table with an `__index` metamethod, the `__index` metamethod will *only* be invoked if the indexer is not found within the current scope: +In the circumstance that the indexee's type is a class or table with an `__index` metamethod, the `__index` metamethod will *only* be invoked if the indexer is not found within the current scope: ```luau local exampleClass = { Foo = "eight" } local exampleClass2 = setmetatable({ Foo = 8 }, { __index = exampleClass })