Skip to content

Commit 03034b6

Browse files
authored
fix file:close signature (#924)
quotes from Lua manual: When closing a file handle created with io.popen, file:close returns the same values returned by os.execute.
1 parent 1d9a8c3 commit 03034b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tl.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ do
3131
"no" "full" "line"
3232
end
3333
34-
close: function(FILE): boolean, string, number
34+
close: function(FILE): boolean, string, integer
3535
flush: function(FILE)
3636
3737
lines: function(FILE): (function(): (string))

tl.tl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ do
3131
"no" "full" "line"
3232
end
3333

34-
close: function(FILE): boolean, string, number
34+
close: function(FILE): boolean, string, integer
3535
flush: function(FILE)
3636

3737
lines: function(FILE): (function(): (string))

0 commit comments

Comments
 (0)