1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 03:30:29 +00:00

Add documentation for io.setvbuf

Fixes #746.

Love how "good first issue" guarantees that nobody will do it. Not
actually true, and thank you for those people who have contributed!
This commit is contained in:
Jonathan Coates 2021-03-28 19:38:25 +01:00
parent 669b6d2d56
commit e48427dbbc

View File

@ -137,6 +137,15 @@ handleMetatable = {
return handle.seek(whence, offset) return handle.seek(whence, offset)
end, end,
--[[- Sets the buffering mode for an output file.
This has no effect under ComputerCraft, and exists with compatility
with base Lua.
@tparam string mode The buffering mode.
@tparam[opt] number size The size of the buffer.
@see file:setvbuf Lua's documentation for `setvbuf`.
@deprecated This has no effect in CC.
]]
setvbuf = function(self, mode, size) end, setvbuf = function(self, mode, size) end,
--- Write one or more values to the file --- Write one or more values to the file