Fix doc example for new stdio API

This commit is contained in:
Filip Tibell 2024-04-18 22:14:54 +02:00
parent 753897222a
commit fa7f6c6f51
No known key found for this signature in database

View file

@ -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 = {}