Fix invalid code in doc example

This commit is contained in:
boatbomber 2023-05-09 20:06:03 -04:00 committed by GitHub
parent 66aa1fc9ea
commit 6ea8326939
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