Skip to content

Commit 99f52a6

Browse files
CopilotTieske
andauthored
fix #518: document fmt param as format string, not function
Agent-Logs-Url: https://github.com/lunarmodules/Penlight/sessions/c46dde20-168b-4b16-9495-0e55bee00fb9 Co-authored-by: Tieske <1077043+Tieske@users.noreply.github.com>
1 parent 2224162 commit 99f52a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/pl/seq.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ end
281281
-- @param iter a sequence
282282
-- @param sep the separator (default space)
283283
-- @param nfields maximum number of values per line (default 7)
284-
-- @param fmt optional format string or function for each value
284+
-- @param fmt optional format string for each value
285285
function seq.printall(iter,sep,nfields,fmt)
286286
local write = io.write
287287
if not sep then sep = ' ' end
288288
if not nfields then
289289
if sep == '\n' then nfields = 1e30
290290
else nfields = 7 end
291291
end
292-
if type(fmt) == 'string' then
292+
if fmt then
293293
local fstr = fmt
294294
fmt = function(v) return format(fstr,v) end
295295
end

0 commit comments

Comments
 (0)