Skip to content

Commit 2a6aa31

Browse files
committed
Replace deprecated @vararg
1 parent 76c88de commit 2a6aa31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/nvim-tree/log.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local M = {
66
--- Write to log file
77
--- @param typ string as per log.types config
88
--- @param fmt string for string.format
9-
--- @vararg any arguments for string.format
9+
--- @param ... any arguments for string.format
1010
function M.raw(typ, fmt, ...)
1111
if not M.enabled(typ) then
1212
return
@@ -28,7 +28,7 @@ end
2828
--- Write profile start to log file
2929
--- START is prefixed
3030
--- @param fmt string for string.format
31-
--- @vararg any arguments for string.format
31+
--- @param ... any arguments for string.format
3232
--- @return Profile to pass to profile_end
3333
function M.profile_start(fmt, ...)
3434
local profile = {}
@@ -54,7 +54,7 @@ end
5454
--- time and typ are prefixed and a trailing newline is added
5555
--- @param typ string as per log.types config
5656
--- @param fmt string for string.format
57-
--- @vararg any arguments for string.format
57+
--- @param ... any arguments for string.format
5858
function M.line(typ, fmt, ...)
5959
if M.enabled(typ) then
6060
M.raw(typ, string.format("[%s] [%s] %s\n", os.date "%Y-%m-%d %H:%M:%S", typ, (fmt or "???")), ...)

0 commit comments

Comments
 (0)