From d0b5b2eca637e1e79156062b67d7cf9d2ffd5910 Mon Sep 17 00:00:00 2001 From: V Gopal <112359514+VG-Fish@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:45:13 -0600 Subject: [PATCH] Update commands.rst Fixed the incorrect syntax in the RunCommand ArcadeDrive example in the "Commands" article in the "Command-Based Programming" section. --- source/docs/software/commandbased/commands.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/docs/software/commandbased/commands.rst b/source/docs/software/commandbased/commands.rst index 995fc5d4bd..cd38eb5ce4 100644 --- a/source/docs/software/commandbased/commands.rst +++ b/source/docs/software/commandbased/commands.rst @@ -159,10 +159,11 @@ The ``run`` factory, backed by the ``RunCommand`` ([Java](https://github.wpilib. frc2::RunCommand( [this] { m_drive.ArcadeDrive( - -m_driverController.GetLeftY(), - m_driverController.GetRightX()); - }, - {&m_drive})) + -m_driverController.GetLeftY(), + m_driverController.GetRightX() + ); + }, {&m_drive} + ) ``` ```python