summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-18 16:53:34 +0800
committerEltrac <hi@guhub.cn>2025-02-18 16:53:34 +0800
commitc523224d76b72772de3a325636cf26cc5ffbf753 (patch)
treebe36814b31741dae44742a5041e84a6529b5422d /content
parent15edab9913b0f50ade29cb99cd192a9051926508 (diff)
docs(blog): fix syntax error in example code
Former-commit-id: 70cefef1e61be04138fd99feebd26a3fc5116e10
Diffstat (limited to 'content')
-rw-r--r--content/posts/稻草人周刊-vol-16.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/posts/稻草人周刊-vol-16.md b/content/posts/稻草人周刊-vol-16.md
index a0a9ba20..0b8c19a4 100644
--- a/content/posts/稻草人周刊-vol-16.md
+++ b/content/posts/稻草人周刊-vol-16.md
@@ -142,7 +142,7 @@ enums = {
要遍历 `table` 也非常方便。
```lua
-for k, v in tbl do
+for k, v in ipairs(tbl) do
-- ...
end
```