mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-21 13:03:22 +00:00
fix: add flush as sink method and fix arg amount for read
This commit is contained in:
parent
54f89db578
commit
9e45929da7
3
sink.go
3
sink.go
@ -27,7 +27,8 @@ func setupSinkType(rtm *rt.Runtime) {
|
|||||||
|
|
||||||
sinkMethods := rt.NewTable()
|
sinkMethods := rt.NewTable()
|
||||||
sinkFuncs := map[string]util.LuaExport{
|
sinkFuncs := map[string]util.LuaExport{
|
||||||
"read": {luaSinkRead, 0, false},
|
"flush": {luaSinkFlush, 1, false},
|
||||||
|
"read": {luaSinkRead, 1, false},
|
||||||
"write": {luaSinkWrite, 2, false},
|
"write": {luaSinkWrite, 2, false},
|
||||||
"writeln": {luaSinkWriteln, 2, false},
|
"writeln": {luaSinkWriteln, 2, false},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user