Skip to content

Commit

Permalink
chore: rename method release to close for sys.exec.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Nov 27, 2024
1 parent 058c18c commit 3820fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local M = {}

local exec_methods = {}

function exec_methods:release()
function exec_methods:close()
if not self.stdout_fd then
return
end
Expand Down Expand Up @@ -39,7 +39,7 @@ end

local exec_metatable = {
__index = exec_methods,
__gc = exec_methods.release
__gc = exec_methods.close
}

function M.exec(...)
Expand Down

0 comments on commit 3820fc5

Please sign in to comment.