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
commit70cefef1e61be04138fd99feebd26a3fc5116e10 (patch)
tree16ca3daa18ab6483e5de5465b61d6c5bff04070f /content
parenta4d35bd7ae8636f2f3e7256954d00fb8eb250853 (diff)
docs(blog): fix syntax error in example code
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
```