aboutsummaryrefslogtreecommitdiff
path: root/testes/strings.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-30 12:18:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-30 12:18:19 -0300
commit0d529138042563baf260366e19a7aa2c60a07174 (patch)
treeea8699a57a9b26e620a2ed6bc2a11c9e49dee780 /testes/strings.lua
parentb80077b8f3e27a94c6afa895b41a9f8b52c42e61 (diff)
downloadlua-0d529138042563baf260366e19a7aa2c60a07174.tar.gz
lua-0d529138042563baf260366e19a7aa2c60a07174.tar.bz2
lua-0d529138042563baf260366e19a7aa2c60a07174.zip
Change in the syntax of attributes
Attributes changed to posfixed ('x <const>', instead of '<const> x'), and "toclose" renamed to "close". Posfixed attributes seem to make it clearer that it applies to only one variable when there are multiple variables.
Diffstat (limited to 'testes/strings.lua')
-rw-r--r--testes/strings.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/strings.lua b/testes/strings.lua
index aa039c4f..2e0e160f 100644
--- a/testes/strings.lua
+++ b/testes/strings.lua
@@ -3,8 +3,8 @@
3 3
4print('testing strings and string library') 4print('testing strings and string library')
5 5
6local <const> maxi = math.maxinteger 6local maxi <const> = math.maxinteger
7local <const> mini = math.mininteger 7local mini <const> = math.mininteger
8 8
9 9
10local function checkerror (msg, f, ...) 10local function checkerror (msg, f, ...)