mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update docs/user-defined-type-functions.md
Co-authored-by: James <jamesramsauer@gmail.com>
This commit is contained in:
parent
5722f85152
commit
0c2914e998
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue