Skip to content

Commit f340f9f

Browse files
committed
fix document error
1 parent 0e30631 commit f340f9f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

resources/std/global.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function load(chunk, chunkname, mode, env) end
149149
---Loads a chunk from the given string.
150150
---
151151
---
152-
---@version 5.1
152+
---@version 5.1, JIT
153153
---@param text string
154154
---@param chunkname? string
155155
---@return function?
@@ -166,12 +166,12 @@ function loadstring(text, chunkname) end
166166
---@param env? any
167167
function loadfile(filename, mode, env) end
168168

169-
---@version 5.1
169+
---@version 5.1, JIT
170170
---@param proxy boolean|table|userdata
171171
---@return userdata
172172
function newproxy(proxy) end
173173

174-
---@version 5.1
174+
---@version 5.1, JIT
175175
---
176176
---Creates a module.
177177
---

resources/std/io.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function io.input(file) end
5757
---@return fun():any
5858
function io.lines(filename, ...) end
5959

60-
---@alias OpenMode '"r"' | '"w"' | '"a"' | '"r+"' | '"w+"' | '"a+"' | '"rb"' | '"wb"' | '"ab"' | '"rb+"' | '"wb+"' | '"ab+"'
60+
---@alias OpenMode "r" | "w" | "a" | "r+" | "w+" | "a+" | "rb" | "wb" | "ab" | "rb+" | "wb+" | "ab+"
6161
---
6262
--- This function opens a file, in the mode specified in the string `mode`. In
6363
--- case of success, it returns a new file handle. The `mode` string can be
@@ -120,7 +120,7 @@ function io.type(obj) end
120120
function io.write(...) end
121121

122122
--- File object
123-
---@class filelib
123+
---@class file
124124
local file = {}
125125

126126
---

resources/std/package.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ package.path = ""
9191
--- variable do not change the table used by `require`.
9292
package.preload = {}
9393

94-
---@version 5.1
94+
---@version 5.1, JIT
9595
package.loaders = {}
9696

9797
---@version > 5.2
@@ -168,7 +168,7 @@ function package.searchpath(name, path, sep, rep) end
168168
---
169169
---Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .
170170
---
171-
---@version 5.1
171+
---@version 5.1, JIT
172172
---@param module table
173173
function package.seeall(module) end
174174

0 commit comments

Comments
 (0)