Merge pull request #45 from boatbomber/patch-1

Fix invalid code in doc example
This commit is contained in:
Filip Tibell 2023-05-10 08:43:10 +02:00 committed by GitHub
commit dfb0781f82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ export type WriteOptions = {
for _, entryName in fs.readDir("myDirName") do
if fs.isFile("myDirName/" .. entryName) then
print("Found file " .. entryName)
elseif if fs.isDir("myDirName/" .. entryName) then
elseif fs.isDir("myDirName/" .. entryName) then
print("Found subdirectory " .. entryName)
end
end