[commands] Fix docs inconsistency for toggleOnFalse(Command) (NFC) (#4978)

This commit is contained in:
Brady Schindler
2023-01-21 02:47:37 -05:00
committed by GitHub
parent ce3dc4eb3b
commit b2b25bf09f
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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`.
*
* <p>Takes a raw pointer, and so is non-owning; users are responsible for the
* lifespan of the command.