From ef3714223b37f2d4a458d73500f983ddc9b38873 Mon Sep 17 00:00:00 2001 From: bovlb <31326650+bovlb@users.noreply.github.com> Date: Tue, 24 May 2022 09:19:38 -0700 Subject: [PATCH] [commands] Remove docs reference to obsolete interrupted() method (NFC) (#4262) --- .../src/main/java/edu/wpi/first/wpilibj2/command/Command.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java index 86ba4d7858..40176a1e3e 100644 --- a/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java +++ b/wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java @@ -318,8 +318,8 @@ public interface Command { } /** - * Cancels this command. Will call the command's interrupted() method. Commands will be canceled - * even if they are not marked as interruptible. + * Cancels this command. Will call the command's end() method with interrupted=true. Commands will + * be canceled even if they are not marked as interruptible. */ default void cancel() { CommandScheduler.getInstance().cancel(this);