From 96611f14cb7f8ca50ea2f7369071de80addbdf3a Mon Sep 17 00:00:00 2001 From: Junseo Yoo Date: Mon, 1 Jul 2024 11:48:31 -0700 Subject: [PATCH] colon to invoke methods --- docs/user-defined-type-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 68ebf74..b390a47 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -25,11 +25,11 @@ end For instance, the `rawget` type function can be written as: ```luau type function rawget(tbl, prop) - if (~tbl.istable()) then + if (~tbl:istable()) then error("First parameter of rawget is not a table!") -- fails to reduce end - return tbl.getprops()[prop.getvalue()] + return tbl:getprops()[prop:getvalue()] end type Person = {