aboutsummaryrefslogtreecommitdiff
path: root/examples/how_do_i.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:23 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:40 -0800
commita2f07415c5284bf94c146cea6eed4a15f171b9ab (patch)
tree925ab30d70cac56c24e007f7daa0b89b9f371f3c /examples/how_do_i.nom
parent7d2b7199d87930096b7fd799709fe0105d51eccb (diff)
Deprecating (% as lua statements) and (% as lua return)
Diffstat (limited to 'examples/how_do_i.nom')
-rw-r--r--examples/how_do_i.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index afa63e0..4dba722 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -267,7 +267,7 @@ say "The square root of 2 is \(square root of 2)"
# Or to transform nomsu code into custom lua code using "compile % to %"
(debug only %body) compiles to:
if %DEBUG_ENABLED:
- return (Lua "-- Debug code:\n\(%body as lua statements)")
+ return (Lua "-- Debug code:\n\(%body as lua)")
..else:
return (Lua "-- (debug code removed for production)")