Skip to content

Commit

Permalink
docs: prevent lua-ls redundant-return-value warning (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Mar 18, 2024
1 parent 8b1099a commit ed70af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nio/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end
---
--- This is useful for APIs where users don't want to create async
--- contexts but which are still used in async contexts internally.
---@param func async fun(...)
---@param func async function
---@param argc? integer The number of arguments of func. Must be included if there are arguments.
function nio.create(func, argc)
return tasks.create(func, argc)
Expand Down

0 comments on commit ed70af8

Please sign in to comment.