diff --git a/source/docs/software/commandbased/commands.rst b/source/docs/software/commandbased/commands.rst index 8c38de7549..ce3f5e2d8e 100644 --- a/source/docs/software/commandbased/commands.rst +++ b/source/docs/software/commandbased/commands.rst @@ -162,7 +162,7 @@ The ``run`` factory, backed by the ``RunCommand`` ([Java](https://github.wpilib. -m_driverController.GetLeftY(), m_driverController.GetRightX()); }, - {&m_drive})) + {&m_drive}) ``` ```python diff --git a/source/docs/software/commandbased/what-is-command-based.rst b/source/docs/software/commandbased/what-is-command-based.rst index 3c7eb1f500..e7c4f6f151 100644 --- a/source/docs/software/commandbased/what-is-command-based.rst +++ b/source/docs/software/commandbased/what-is-command-based.rst @@ -13,7 +13,7 @@ The command-based paradigm is also an example of :term:`declarative programming` ``` ```c++ - Trigger([&condition] { return condition.Get()).OnTrue(frc2::cmd::RunOnce([&piston] { piston.Set(frc::DoubleSolenoid::kForward))); + Trigger([&condition] { return condition.Get(); }).OnTrue(frc2::cmd::RunOnce([&piston] { piston.Set(frc::DoubleSolenoid::kForward); })); ``` ```python