From ec831dfc3d8370501b9ab3ec0dcd56f7e9e847e9 Mon Sep 17 00:00:00 2001 From: Starlight220 <53231611+Starlight220@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:47:56 +0200 Subject: [PATCH] change api doc to markdown Co-authored-by: Ryan Blue --- .../native/include/frc2/command/Commands.h | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h b/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h index 966cdf5f47f..7dea6f2c9c9 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h @@ -162,17 +162,18 @@ CommandPtr Select(std::function selector, /** * Runs a command chosen from the dashboard. * - *

Example usage: * - *

- * 
- * CommandPtr autonomousCommand = frc2::cmd::Choose(
- *   [](wpi::Sendable* chooser) { frc::SmartDashboard::PutData("Auto Chooser",
- * chooser); }, std::move(myFirstAuto).WithName("First Auto"),
- *   std::move(mySecondAuto).WithName("Second Auto")
- * );
- * 
- * 
+ * Example usage: + * + * ```cpp + * frc2::CommandPtr autonomousCommand = frc2::cmd::Choose( + * [](wpi::Sendable* chooser) { + * frc::SmartDashboard::PutData("Auto Chooser", chooser); + * }, + * std::move(myFirstAuto).WithName("First Auto"), + * std::move(mySecondAuto).WithName("Second Auto")); + * ``` + * * * @param publish lambda used for publishing the chooser to the dashboard * @param commands commands to choose from