Browse Source

Fix constructors;

bjorn 7 years ago
parent
commit
a5c6eb76cf
3 changed files with 4 additions and 8 deletions
  1. 2 6
      api/init.lua
  2. 1 1
      api/lovr/thread/Channel/init.lua
  3. 1 1
      api/lovr/thread/Thread/init.lua

+ 2 - 6
api/init.lua

@@ -18654,9 +18654,7 @@ return {
             }
           },
           constructors = {
-            {
-              "lovr.thread.getChannel"
-            }
+            "lovr.thread.getChannel"
           }
         },
         {
@@ -18741,9 +18739,7 @@ return {
             }
           },
           constructors = {
-            {
-              "lovr.thread.newThread"
-            }
+            "lovr.thread.newThread"
           },
           related = {
             "lovr.threaderror",

+ 1 - 1
api/lovr/thread/Channel/init.lua

@@ -7,5 +7,5 @@ return {
     `Channel:push` and `Channel:pop`.  The following types of data that can be passed through
     Channels: nil, boolean, number, string, and any LÖVR object.
   ]],
-  constructor = { 'lovr.thread.getChannel' }
+  constructor = 'lovr.thread.getChannel'
 }

+ 1 - 1
api/lovr/thread/Thread/init.lua

@@ -6,7 +6,7 @@ return {
     variables and functions of other threads.  Communication between threads is limited and is
     accomplished by using `Channel` objects.
   ]],
-  constructor = { 'lovr.thread.newThread' },
+  constructor = 'lovr.thread.newThread',
   related = {
     'lovr.threaderror',
     'Channel'