format document

This commit is contained in:
Bill Hilbert 2023-12-17 23:38:30 -05:00
parent ca49753375
commit b68713a143

View File

@ -88,7 +88,7 @@ end
--add a state
function state_machine:add_state(name, state)
if self:has_state(name) then
error("error: added duplicate state "..name)
error("error: added duplicate state " .. name)
else
self.states[name] = state
if self:in_state(name) then
@ -102,7 +102,7 @@ end
--remove a state
function state_machine:remove_state(name)
if not self:has_state(name) then
error("error: removed missing state "..name)
error("error: removed missing state " .. name)
else
if self:in_state(name) then
self:_call("exit")