From ea89bc9aa5e6ff17ea72ff13847f04d95cde9d31 Mon Sep 17 00:00:00 2001 From: fmOOmf <98671961+fmOOmf@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:26:01 +0200 Subject: [PATCH] code comment Co-authored-by: Yaya-Cout --- python/port/mod/turtle/turtle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/port/mod/turtle/turtle.cpp b/python/port/mod/turtle/turtle.cpp index e5bb0c39d..b7d030fc0 100644 --- a/python/port/mod/turtle/turtle.cpp +++ b/python/port/mod/turtle/turtle.cpp @@ -74,7 +74,7 @@ void Turtle::left(mp_float_t angle) { void Turtle::circle(mp_int_t radius, mp_float_t angle) { mp_float_t oldHeading = heading(); mp_float_t length = std::fabs(angle * k_headingScale * radius); - int direction = 1; // 1=fwd, -1=backward + int direction = 1; // 1=forward, -1=backward if (angle < 0) { direction =-1; } if (length > 1) { for (int i = 1; i < length; i++) {