Diff

util/format.lua @ 12590:5eaf77114fdb

compat: Use table.pack (there since Lua 5.2) over our util.table Added in d278a770eddc avoid having to deal with its absence in Lua 5.1. No longer needed when Lua 5.1 support is dropped.
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jul 2022 19:15:24 +0200
parent 12589:39ae08180c81
child 12781:22066b02887f
line wrap: on
line diff
--- a/util/format.lua	Mon Jul 11 19:07:38 2022 +0200
+++ b/util/format.lua	Mon Jul 11 19:15:24 2022 +0200
@@ -7,7 +7,7 @@
 
 local tostring = tostring;
 local unpack = table.unpack;
-local pack = require "util.table".pack; -- TODO table.pack in 5.2+
+local pack = table.pack;
 local valid_utf8 = require "util.encodings".utf8.valid;
 local type = type;
 local dump = require "util.serialization".new("debug");