Browse Source

Fix swapped name and type in `getDirectoryItems.lua`

pterror 1 year ago
parent
commit
df9944a9bc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      api/lovr/filesystem/getDirectoryItems.lua

+ 3 - 3
api/lovr/filesystem/getDirectoryItems.lua

@@ -9,15 +9,15 @@ return {
     }
   },
   returns = {
-    table = {
-      type = 'items',
+    items = {
+      type = 'table',
       description = 'A table with a string for each file and subfolder in the directory.'
     }
   },
   variants = {
     {
       arguments = { 'path' },
-      returns = { 'table' }
+      returns = { 'items' }
     }
   },
   notes = [[