bjorn 1 周之前
父节点
当前提交
b08fd8a207
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      api/init.lua
  2. 1 1
      api/lovr/vector/pack.lua

+ 1 - 1
api/init.lua

@@ -42968,7 +42968,7 @@ return {
               code = "local a = vector.pack(1, 2, 3)\nlocal b = vector.pack(5)\nprint(a + b) --> 6, 7, 8\n\n-- put the 3 numbers from lovr.headset.getPosition into a vector!\nlocal position = vector(lovr.headset.getPosition())"
             }
           },
-          notes = "As a shortcut, the `vector` library can be called like a function, which calls this function:\n\n    vector(x, y, z) -- same as vector.pack(x, y, z)",
+          notes = "As a shortcut, the `vector` library can be called like a function, which calls `vector.pack`:\n\n    vector(x, y, z) -- same as vector.pack(x, y, z)",
           variants = {
             {
               arguments = {

+ 1 - 1
api/lovr/vector/pack.lua

@@ -33,7 +33,7 @@ return {
     }
   },
   notes = [[
-    As a shortcut, the `vector` library can be called like a function, which calls this function:
+    As a shortcut, the `vector` library can be called like a function, which calls `vector.pack`:
 
         vector(x, y, z) -- same as vector.pack(x, y, z)
   ]],