summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--locale/en-us/meta.lua2
-rw-r--r--locale/zh-cn/meta.lua2
-rw-r--r--meta/template/basic.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/locale/en-us/meta.lua b/locale/en-us/meta.lua
index ffb4fee7..acbb510c 100644
--- a/locale/en-us/meta.lua
+++ b/locale/en-us/meta.lua
@@ -47,7 +47,7 @@ The order in which the indices are enumerated is not specified, *even for numeri
The behavior of `next` is undefined if, during the traversal, you assign any value to a non-existent field in the table. You may however modify existing fields. In particular, you may set existing fields to nil.
]]
-paris = [[
+pairs = [[
If `t` has a metamethod `__pairs`, calls it with t as argument and returns the first three results from the call.
Otherwise, returns three values: the $next function, the table `t`, and `nil`, so that the construction
diff --git a/locale/zh-cn/meta.lua b/locale/zh-cn/meta.lua
index a054a464..c57a435c 100644
--- a/locale/zh-cn/meta.lua
+++ b/locale/zh-cn/meta.lua
@@ -47,7 +47,7 @@ next = [[
当在遍历过程中你给表中并不存在的域赋值, `next` 的行为是未定义的。 然而你可以去修改那些已存在的域。 特别指出,你可以清除一些已存在的域。
]]
-paris = [[
+pairs = [[
如果 `t` 有元方法 `__pairs`, 以 `t` 为参数调用它,并返回其返回的前三个值。
否则,返回三个值:`next` 函数, 表 `t`,以及 `nil`。 因此以下代码
diff --git a/meta/template/basic.lua b/meta/template/basic.lua
index c92f0a2a..5665dc59 100644
--- a/meta/template/basic.lua
+++ b/meta/template/basic.lua
@@ -132,7 +132,7 @@ function module(name, ...) end
---@return V
function next(table, index) end
----#DES 'paris'
+---#DES 'pairs'
---@generic T: table, K, V
---@param t T
---@return fun(table: table<K, V>, index?: K):K, V