Skip to content

Commit 3a36e0d

Browse files
committed
Better comments and variable names
1 parent 07bb16e commit 3a36e0d

File tree

1 file changed

+3
-3
lines changed
  • wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command

1 file changed

+3
-3
lines changed

wpilibNewCommands/src/main/java/edu/wpi/first/wpilibj2/command/Command.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -416,14 +416,14 @@ public RepeatCommand repeatedly() {
416416
* commands with {@link CommandScheduler#removeComposedCommand(Command)}. The command composition
417417
* returned from this method can be further decorated without issue.
418418
*
419-
* @param times the count of times to run the command (inclusively).
419+
* @param times the count of times to run the command.
420420
* @return the decorated command
421421
*/
422-
public ParallelRaceGroup repeatedly(int times) {
422+
public ParallelRaceGroup repeatedly(int repetitions) {
423423
AtomicInteger counter = new AtomicInteger(0);
424424
return this.finallyDo(counter::getAndIncrement)
425425
.repeatedly()
426-
.until(() -> counter.get() >= times);
426+
.until(() -> counter.get() >= repetitions);
427427
}
428428

429429
/**

0 commit comments

Comments
 (0)