Skip to content

Commit bd57d0f

Browse files
Fix syntax error in extension_modules (#225)
* Update extension_modules.md Fix a syntax error in example code. * Update extension_modules.md Fix syntex error in example code in en version.
1 parent bf7d286 commit bd57d0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manual/extension_modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For task tasks or plugins that are not a main entry, you can use this:
2727

2828
```lua
2929
task("hello")
30-
on_run(function ())
30+
on_run(function ()
3131
import("core.base.option")
3232
print(option.get("info"))
3333
end)

zh-cn/manual/extension_modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727

2828
```lua
2929
task("hello")
30-
on_run(function ())
30+
on_run(function ()
3131
import("core.base.option")
3232
print(option.get("info"))
3333
end)

0 commit comments

Comments
 (0)