mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 04:50:36 +00:00
Fix doc example for new stdio API
This commit is contained in:
parent
753897222a
commit
fa7f6c6f51
1 changed files with 2 additions and 4 deletions
|
@ -59,10 +59,8 @@ end
|
|||
stdio.write("All on the same line")
|
||||
stdio.ewrite("\nAnd some error text, too")
|
||||
|
||||
-- Reading from stdin, either line-by-line or the entire input
|
||||
local firstLine = stdio.readLine()
|
||||
local secondLine = stdio.readLine()
|
||||
local remaining = stdio.readToEnd()
|
||||
-- Reading the entire input from stdin
|
||||
local input = stdio.readToEnd()
|
||||
```
|
||||
]=]
|
||||
local stdio = {}
|
||||
|
|
Loading…
Reference in a new issue