From 3b63025a3f289fddf6558dc0f18ccf44ab55b102 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 6 Jul 2020 00:45:24 -0500 Subject: [PATCH] Separate `&` from parameter names in methods. --- examples/snake/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/snake/src/main.cpp b/examples/snake/src/main.cpp index a923524..c95d144 100644 --- a/examples/snake/src/main.cpp +++ b/examples/snake/src/main.cpp @@ -23,7 +23,7 @@ public: } - void Update(const float &delta_time) override { + void Update(const float& delta_time) override { if (sf::Keyboard::isKeyPressed(sf::Keyboard::A)) { movement_direction.x = -movement_speed; movement_direction.y = 0;