From b2b25bf09f0dc1b7bb2baea3c42463a100d7412b Mon Sep 17 00:00:00 2001 From: Brady Schindler <82062997+Nyxiad@users.noreply.github.com> Date: Sat, 21 Jan 2023 02:47:37 -0500 Subject: [PATCH] [commands] Fix docs inconsistency for toggleOnFalse(Command) (NFC) (#4978) --- .../java/edu/wpi/first/wpilibj2/command/button/Trigger.java | 2 +- .../src/main/native/include/frc2/command/button/Trigger.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button/Trigger.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button/Trigger.java index 19b8b20974..049aa2e043 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button/Trigger.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/button/Trigger.java @@ -205,7 +205,7 @@ public class Trigger implements BooleanSupplier { } /** - * Toggles a command when the condition changes from `true` to the low state. + * Toggles a command when the condition changes from `true` to `false`. * * @param command the command to toggle * @return this trigger, so calls can be chained diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h b/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h index c3a5e86b5c..6a93ca3f29 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h @@ -194,8 +194,7 @@ class Trigger { Trigger ToggleOnFalse(Command* command); /** - * Toggles a command when the condition changes from `true` to the low - * state. + * Toggles a command when the condition changes from `true` to `false`. * *

Takes a raw pointer, and so is non-owning; users are responsible for the * lifespan of the command.