Update docs/user-defined-type-functions.md

Co-authored-by: James <jamesramsauer@gmail.com>
This commit is contained in:
Junseo Yoo 2024-07-23 15:10:59 -07:00 committed by GitHub
parent 5722f85152
commit 0c2914e998
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ end
For instance, the `rawget` type function can be written as: For instance, the `rawget` type function can be written as:
```luau ```luau
type function rawget(tbl, prop) 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 error("First argument is not a table!") -- fails to reduce
end end