Fix invalid syntax in two Lua examples

Fixes: #2929
This commit is contained in:
Panu Matilainen 2024-02-28 14:04:40 +02:00
parent 1dc7e76fa5
commit ebece0fb63
1 changed files with 2 additions and 2 deletions

View File

@ -475,7 +475,7 @@ end
Get current directory.
```
if posix.getcwd() != '/' then
if posix.getcwd() ~= '/' then
...
endif
```
@ -485,7 +485,7 @@ endif
Get environment variable
```
if posix.getenv('HOME') != posix.getcwd() then
if posix.getenv('HOME') ~= posix.getcwd() then
print('not at home')
end
```