Add the ability to call cc.expect directly

This commit is contained in:
JackMacWindows 2021-05-19 20:14:13 -04:00 committed by GitHub
parent 4592534a18
commit e0a288bcb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ local function range(num, min, max)
return num
end
return {
return setmetatable({
expect = expect,
field = field,
range = range,
}
}, { __call = function(_, ...) return expect(...) end })