mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
grammar fixes
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
parent
102e05fb0c
commit
079f05f1b5
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ This RFC proposes the addition on one type operator, `rawget`, which can be used
|
||||||
|
|
||||||
## Motivation
|
## Motivation
|
||||||
|
|
||||||
There exists `index` type operator that allow developers to obtain a type of a property from classes / tables. If the a type is not found in the given class / table, the operator recursively indexes into the `__index` metamethod to continue searching for the property. Sometimes, this is could be an unwanted behavior. For example, given this code:
|
There exists an `index` type operator that allows developers to obtain a type of a property from classes / tables. If a type is not found in the given class / table, the operator recursively indexes into the `__index` metamethod to continue searching for the property. Sometimes, this could be an unwanted behavior. For example, given this code:
|
||||||
|
|
||||||
```luau
|
```luau
|
||||||
local var1 = {
|
local var1 = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue