diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-12-30 11:45:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-12-30 11:45:08 -0300 |
commit | bd1b87c5790c0c6fe23f76aa360e879922e1e738 (patch) | |
tree | 49978c2dd847c7ff4ec84e1a153ca37deef79e2a /testes/api.lua | |
parent | d7bb8df8414f71a290c8a4b1c9f7c6fe839a94df (diff) | |
download | lua-bd1b87c5790c0c6fe23f76aa360e879922e1e738.tar.gz lua-bd1b87c5790c0c6fe23f76aa360e879922e1e738.tar.bz2 lua-bd1b87c5790c0c6fe23f76aa360e879922e1e738.zip |
Comments (mosty typos)
Diffstat (limited to 'testes/api.lua')
-rw-r--r-- | testes/api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/api.lua b/testes/api.lua index b5657416..9447e42a 100644 --- a/testes/api.lua +++ b/testes/api.lua | |||
@@ -805,7 +805,7 @@ F = function (x) | |||
805 | if A ~= nil then | 805 | if A ~= nil then |
806 | assert(type(A) == "userdata") | 806 | assert(type(A) == "userdata") |
807 | assert(T.udataval(A) == B) | 807 | assert(T.udataval(A) == B) |
808 | debug.getmetatable(A) -- just acess it | 808 | debug.getmetatable(A) -- just access it |
809 | end | 809 | end |
810 | A = x -- ressucita userdata | 810 | A = x -- ressucita userdata |
811 | B = udval | 811 | B = udval |
@@ -1112,7 +1112,7 @@ do | |||
1112 | -- non-closable value | 1112 | -- non-closable value |
1113 | local a, b = pcall(T.makeCfunc[[ | 1113 | local a, b = pcall(T.makeCfunc[[ |
1114 | newtable # create non-closable object | 1114 | newtable # create non-closable object |
1115 | toclose -1 # mark it to be closed (shoud raise an error) | 1115 | toclose -1 # mark it to be closed (should raise an error) |
1116 | abort # will not be executed | 1116 | abort # will not be executed |
1117 | ]]) | 1117 | ]]) |
1118 | assert(a == false and | 1118 | assert(a == false and |