diff --git a/src/main/java/core/basesyntax/RobotRoute.java b/src/main/java/core/basesyntax/RobotRoute.java index ea646920..5203c7b0 100644 --- a/src/main/java/core/basesyntax/RobotRoute.java +++ b/src/main/java/core/basesyntax/RobotRoute.java @@ -24,7 +24,7 @@ public static int setDirectionAndStepsX(Robot robot, int toX) { robot.turnRight(); } } - return Math.max(robot.getX(), toX) - Math.min(robot.getX(), toX); // returns amount of steps + return Math.max(robot.getX(), toX) - Math.min(robot.getX(), toX); } public static int setDirectionAndStepsY(Robot robot, int toY) { @@ -37,6 +37,6 @@ public static int setDirectionAndStepsY(Robot robot, int toY) { robot.turnRight(); } } - return Math.max(robot.getY(), toY) - Math.min(robot.getY(), toY); // returns amount of steps + return Math.max(robot.getY(), toY) - Math.min(robot.getY(), toY); } }