Schema: Make `range` not an upvalue of itself

master
Lars Mueller 2022-05-12 11:58:23 +02:00
parent 121b5bf5b2
commit d3d2799105
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
local function angle(description, default)
return { type = "number", range = { min = -180, max = 180 }, description = description, default = default }
end
local function range(description, default_min, default_max)
local range = function(description, default_min, default_max)
return {
type = "table",
entries = {