mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Fix incorrect Trigger docs (NFC) (#4792)
This commit is contained in:
@@ -472,10 +472,10 @@ public class Trigger implements BooleanSupplier {
|
||||
}
|
||||
|
||||
/**
|
||||
* Composes two triggers with logical OR.
|
||||
* Composes two triggers with logical AND.
|
||||
*
|
||||
* @param trigger the condition to compose with
|
||||
* @return A trigger which is active when either component trigger is active.
|
||||
* @return A trigger which is active when both component triggers are active.
|
||||
*/
|
||||
public Trigger and(BooleanSupplier trigger) {
|
||||
return new Trigger(() -> m_condition.getAsBoolean() && trigger.getAsBoolean());
|
||||
|
||||
Reference in New Issue
Block a user