aboutsummaryrefslogtreecommitdiffstats
path: root/src/theming/lua-lib/expect.lua
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2024-04-05 11:36:56 -0400
committeralyx <alyx@aleteoryx.me>2024-04-05 11:36:56 -0400
commitd7727c21586734f19d016fc84f94eaf0764eda34 (patch)
tree7e013742b891d00e19ad7653f978f0a3fa577988 /src/theming/lua-lib/expect.lua
parent21ffaa07a20ccec702a77278724c6f78351a96f2 (diff)
downloadlfm_embed-d7727c21586734f19d016fc84f94eaf0764eda34.tar.gz
lfm_embed-d7727c21586734f19d016fc84f94eaf0764eda34.tar.bz2
lfm_embed-d7727c21586734f19d016fc84f94eaf0764eda34.zip
html.lua functional
Diffstat (limited to 'src/theming/lua-lib/expect.lua')
-rw-r--r--src/theming/lua-lib/expect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theming/lua-lib/expect.lua b/src/theming/lua-lib/expect.lua
index f4cade7..9afbb49 100644
--- a/src/theming/lua-lib/expect.lua
+++ b/src/theming/lua-lib/expect.lua
@@ -94,7 +94,7 @@ end
-- @throws If the field is not one of the allowed types.
local function field(tbl, index, ...)
expect(1, tbl, "table")
- expect(2, index, "string")
+ expect(2, index, "string", "number")
local value = tbl[index]
local t = native_type(value)