From 0c2914e99804dc991916bb56a38a3f90e5de81d5 Mon Sep 17 00:00:00 2001 From: Junseo Yoo <59751754+joonyoo181@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:10:59 -0700 Subject: [PATCH] Update docs/user-defined-type-functions.md Co-authored-by: James --- docs/user-defined-type-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 143009b..0e02f69 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -25,7 +25,7 @@ end For instance, the `rawget` type function can be written as: ```luau type function rawget(tbl, prop) - if not typelib.type(tbl) == "table" then + if typelib.type(tbl) ~= "table" then error("First argument is not a table!") -- fails to reduce end