From 5a37ebca21341843820faee253e1e7d535c846ce Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 28 Jul 2021 17:21:17 -0400 Subject: [PATCH] Correct usage in README example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 29848fc..f82ab52 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ spring := harmonica.NewSpring(harmonica.FPS(60), 6.0, 0.5) // Animate! for { - sprite.x, sprite.xVelocity = spring.Update(&sprite.x, &sprite.xVelocity, targetX) - sprite.y, sprite.yVelocity = spring.Update(&sprite.y, &sprite.yVelocity, targetY) + sprite.x, sprite.xVelocity = spring.Update(sprite.x, sprite.xVelocity, targetX) + sprite.y, sprite.yVelocity = spring.Update(sprite.y, sprite.yVelocity, targetY) time.Sleep(time.Second/60) } ```