From 4ffbcea89c9ca6d493f9bde2eea0d9ec2eb061d2 Mon Sep 17 00:00:00 2001 From: Michael Nix Date: Sun, 18 Feb 2018 22:42:52 +0100 Subject: [PATCH] adds missing do statement after for loops --- docs/MainModule.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/MainModule.rst b/docs/MainModule.rst index 1f13d60..03ea477 100644 --- a/docs/MainModule.rst +++ b/docs/MainModule.rst @@ -214,7 +214,7 @@ You can iterate over the shapes using ``pairs`` (see example). **Example**:: local collisions = HC.collisions(shape) - for other, separating_vector in pairs(collisions) + for other, separating_vector in pairs(collisions) do shape:move(-separating_vector.x/2, -separating_vector.y/2) other:move( separating_vector.x/2, separating_vector.y/2) end @@ -237,7 +237,7 @@ You can iterate over the shapes using ``pairs`` (see example). **Example**:: local candidates = HC.neighbors(shape) - for other in pairs(candidates) + for other in pairs(candidates) do local collides, dx, dy = shape:collidesWith(other) if collides then other:move(dx, dy)