fix README.md example error

This commit is contained in:
C.y 2020-11-03 19:35:44 +08:00
parent afd7d326d7
commit 2beca9a0ad

View File

@ -56,7 +56,7 @@ local talkingSystem = tiny.processingSystem()
talkingSystem.filter = tiny.requireAll("name", "mass", "phrase") talkingSystem.filter = tiny.requireAll("name", "mass", "phrase")
function talkingSystem:process(e, dt) function talkingSystem:process(e, dt)
e.mass = e.mass + dt * 3 e.mass = e.mass + dt * 3
print(("%s who weighs %d pounds, says %q."):format(e.name, e.mass, e.phrase) print(("%s who weighs %d pounds, says %q."):format(e.name, e.mass, e.phrase))
end end
local joe = { local joe = {