Class: minor formal changes

This commit is contained in:
Van
2026-11-17 21:35:05 +03:00
parent 9fa3a0aff7
commit c96bb2c0bc

View File

@@ -16,7 +16,8 @@ end
---@generic T:table
---@param self T Parent class.
---@param params table Child object parameters.
---@param metatable table? The table that will become the metatable for the object. Note: The `__index` field will be overwritten by a copy of `self`.
---@param metatable table? The table that will become the metatable for the object.
--- Note: The `__index` field will be overwritten by a copy of `self`.
---@return T
function Class.getInstance(self, params, metatable)
if metatable == nil then
@@ -28,4 +29,4 @@ function Class.getInstance(self, params, metatable)
local instance = setmetatable(params, metatable)
return instance
end
end