瀏覽代碼

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.
npc1054657282 6 月之前
父節點
當前提交
bd57d0f2be
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      manual/extension_modules.md
  2. 1 1
      zh-cn/manual/extension_modules.md

+ 1 - 1
manual/extension_modules.md

@@ -27,7 +27,7 @@ For task tasks or plugins that are not a main entry, you can use this:
 
 ```lua
 task("hello")
-    on_run(function ())
+    on_run(function ()
         import("core.base.option")
         print(option.get("info"))
     end)

+ 1 - 1
zh-cn/manual/extension_modules.md

@@ -27,7 +27,7 @@ end
 
 ```lua
 task("hello")
-    on_run(function ())
+    on_run(function ()
         import("core.base.option")
         print(option.get("info"))
     end)