Fixed a small typo in the usertype documentation.

This commit is contained in:
OrfeasZ 2016-05-25 22:01:34 +03:00
parent 9b65fb9f93
commit 821af1f0f0

View File

@ -83,7 +83,7 @@ Note that here, because the C++ class is default-constructible, it will automati
-- note the ":" that is there: this is mandatory for member function calls -- note the ":" that is there: this is mandatory for member function calls
-- ":" means "pass self" in Lua -- ":" means "pass self" in Lua
local success = fwoosh:shoot() local success = fwoosh:shoot()
local is_dead = fwoosh:hit(20) local is_dead = fwoosh:hurt(20)
-- check if it works -- check if it works
print(is_dead) -- the ship is not dead at this point print(is_dead) -- the ship is not dead at this point
print(fwoosh.life .. "life left") -- 80 life left print(fwoosh.life .. "life left") -- 80 life left