Skip to content

Commit

Permalink
Merge pull request #131 from zfl9/master
Browse files Browse the repository at this point in the history
Update the prototype of `assert()`, replace `any` with the generic `T`
  • Loading branch information
CppCXY authored Aug 2, 2023
2 parents fe91dea + 1ae1759 commit 0759b65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions res/std/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
--- **false**); otherwise, returns all its arguments. In case of error,
--- `message` is the error object; when absent, it defaults to "assertion
--- failed!"
---@overload fun(v:any):any
---@param v any
---@param message string
---@return any
---@generic T
---@param v T
---@param message? string
---@return T
function assert(v, message) end

---
Expand Down

0 comments on commit 0759b65

Please sign in to comment.