aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/doc/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docs/doc/README.md')
-rwxr-xr-xdoc/docs/doc/README.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md
index 56d3635..e1ba56e 100755
--- a/doc/docs/doc/README.md
+++ b/doc/docs/doc/README.md
@@ -278,12 +278,11 @@ macro yueFunc = (var) -> "local #{var} = ->"
278$yueFunc funcA 278$yueFunc funcA
279funcA = -> "fail to assign to the Yue defined variable" 279funcA = -> "fail to assign to the Yue defined variable"
280 280
281-- take care and let YueScript know the 281-- YueScript knows the
282-- local variables you declared in Lua code 282-- local variables you declared in Lua code
283macro luaFunc = (var) -> { 283macro luaFunc = (var) -> {
284 code: "local function #{var}() end" 284 code: "local function #{var}() end"
285 type: "lua" 285 type: "lua"
286 locals: {var}
287} 286}
288$luaFunc funcB 287$luaFunc funcB
289funcB = -> "assign to the Lua defined variable" 288funcB = -> "assign to the Lua defined variable"
@@ -307,12 +306,11 @@ macro yueFunc = (var) -> "local #{var} = ->"
307$yueFunc funcA 306$yueFunc funcA
308funcA = -> "fail to assign to the Yue defined variable" 307funcA = -> "fail to assign to the Yue defined variable"
309 308
310-- take care and let YueScript know the 309-- YueScript knows the
311-- local variables you declared in Lua codes 310-- local variables you declared in Lua codes
312macro luaFunc = (var) -> { 311macro luaFunc = (var) -> {
313 code: "local function #{var}() end" 312 code: "local function #{var}() end"
314 type: "lua" 313 type: "lua"
315 locals: {var}
316} 314}
317$luaFunc funcB 315$luaFunc funcB
318funcB = -> "assign to the Lua defined variable" 316funcB = -> "assign to the Lua defined variable"