From 821af1f0f06abe0796e65afb6d2d82e1bbde2140 Mon Sep 17 00:00:00 2001 From: OrfeasZ Date: Wed, 25 May 2016 22:01:34 +0300 Subject: [PATCH] Fixed a small typo in the usertype documentation. --- docs/source/api/usertype.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/api/usertype.rst b/docs/source/api/usertype.rst index d714ee82..03aa394b 100644 --- a/docs/source/api/usertype.rst +++ b/docs/source/api/usertype.rst @@ -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 -- ":" means "pass self" in Lua local success = fwoosh:shoot() - local is_dead = fwoosh:hit(20) + local is_dead = fwoosh:hurt(20) -- check if it works print(is_dead) -- the ship is not dead at this point print(fwoosh.life .. "life left") -- 80 life left