aboutsummaryrefslogtreecommitdiff
path: root/examples/how_do_i.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-10-13 18:14:03 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-10-13 18:14:03 -0700
commite82a8286b66175739b294a0797658a9370004e5a (patch)
tree36d0ab299635ff216dc5956ff52783bf7c21fe1d /examples/how_do_i.nom
parenta176c7dfb5752748aad67467277bb61f66ccab79 (diff)
Removed io.write() stuff.
Diffstat (limited to 'examples/how_do_i.nom')
-rw-r--r--examples/how_do_i.nom3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/how_do_i.nom b/examples/how_do_i.nom
index 9aa15c6..486ea19 100644
--- a/examples/how_do_i.nom
+++ b/examples/how_do_i.nom
@@ -238,8 +238,7 @@ say both (..)
# The "lua block %" and "lua expr %" macros can be used to write raw lua code:
rule [say the time] =:
lua block ".."
- |io.write("The OS time is: ")
- |io.write(tostring(os.time()).."\\n")
+ |nomsu:writeln("The OS time is: "..os.time());
say the time
say "Math expression result is: \(lua expr "(1 + 2*3 + 3*4)^2")"