mirror of
https://github.com/lune-org/lune.git
synced 2025-01-05 19:09:10 +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.write("All on the same line")
|
||||||
stdio.ewrite("\nAnd some error text, too")
|
stdio.ewrite("\nAnd some error text, too")
|
||||||
|
|
||||||
-- Reading from stdin, either line-by-line or the entire input
|
-- Reading the entire input from stdin
|
||||||
local firstLine = stdio.readLine()
|
local input = stdio.readToEnd()
|
||||||
local secondLine = stdio.readLine()
|
|
||||||
local remaining = stdio.readToEnd()
|
|
||||||
```
|
```
|
||||||
]=]
|
]=]
|
||||||
local stdio = {}
|
local stdio = {}
|
||||||
|
|
Loading…
Reference in a new issue