From eabdf972e2b0fdbd6a676facc40645f04d6fc50d Mon Sep 17 00:00:00 2001 From: James Reed Date: Wed, 10 Apr 2019 20:15:17 -0600 Subject: [PATCH] Fix LuaDoc comments --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 976a26a..d71c398 100644 --- a/init.lua +++ b/init.lua @@ -46,7 +46,9 @@ end --- Get a launched client by its ID. -- -- @param id The ID. +-- @param filter Function to filter clients that are considered. -- @return The client. +-- @function client.by_id function launch.client.by_id(id, filter) for _, c in ipairs(client.get()) do if (not filter or filter(c)) and c.single_instance_id == id then @@ -57,8 +59,10 @@ end --- Get a launched client by its command line. -- --- @param id The command line. +-- @param cmd The command line. +-- @param filter Function to filter clients that are considered. -- @return The client. +-- @function client.by_cmdline function launch.client.by_cmdline(cmd, filter) for _, c in ipairs(client.get()) do if (not filter or filter(c)) and c.cmdline == cmd then