Skip to content

Commit cb1591e

Browse files
Re #1: corrections
1 parent ae1bee6 commit cb1591e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

included_lua_libraries.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
| Lua Standard Libraries | Included |
66
| -- | -- |
7-
| package | no |
8-
| coroutine | no |
9-
| table | no |
10-
| [io](lib/io.md) | since 2.1.0 (with limitations) |
11-
| os | no |
12-
| string | no |
13-
| bit | since 2.1.0 |
14-
| math | 2.0.0 |
15-
| debug | no |
7+
| package | - |
8+
| coroutine | - |
9+
| table | - |
10+
| [io](lib/io.md) | since OpenTX 2.1.0 (with limitations) |
11+
| os | - |
12+
| string | - |
13+
| bit | since OpenTX 2.1.0 |
14+
| math | since OpenTX 2.0.0 |
15+
| debug | - |
1616

lib/io.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The **io** library has been simplified and only a subset of functions and their
1212

1313
## Examples
1414

15-
### Read whole file
15+
### Read the whole file
1616

1717
```lua
1818
-- this is an OpenTX stand-alone script
@@ -22,7 +22,7 @@ local function run(event)
2222
local f = io.open("foo.bar", "r")
2323
while true do
2424
local data = io.read(f, 10) -- read up to 10 characters (newline char also counts!)
25-
if #data == 0 then break end -- we get zero lenght string back when we reach end of the file
25+
if #data == 0 then break end -- we get zero length string back when we reach end of the file
2626
print("data: "..data)
2727
end
2828
io.close(f)

0 commit comments

Comments
 (0)