From 8aecda03ed02336f7b2125a5603f15bbaf33f046 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sat, 5 Jun 2021 13:35:03 -0700 Subject: [PATCH] [wpilib] Fix a documentation typo (#3408) "indicated" was misspelled. --- wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h | 6 +++--- .../java/edu/wpi/first/wpilibj/AsynchronousInterrupt.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h b/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h index 924c741650..69c1038501 100644 --- a/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h +++ b/wpilibc/src/main/native/include/frc/AsynchronousInterrupt.h @@ -19,8 +19,8 @@ namespace frc { *

By default, interrupts will occur on rising edge. Callbacks are disabled * by default, and Enable() must be called before they will occur. * - *

Both rising and falling edge can be indiciated if both a rising and - * falling happen between callbacks. + *

Both rising and falling edges can be indicated in one callback if both a + * rising and falling edge occurred since the previous callback. * *

Synchronous interrupts are handled by the SynchronousInterrupt class. */ @@ -31,7 +31,7 @@ class AsynchronousInterrupt { * *

At construction, the interrupt will trigger on the rising edge. * - *

The first bool in the callback is rising, the 2nd is falling. + *

The first bool in the callback is rising, the second is falling. */ AsynchronousInterrupt(DigitalSource& source, std::function callback); diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AsynchronousInterrupt.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AsynchronousInterrupt.java index bd261f1a20..59f6478ef6 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/AsynchronousInterrupt.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/AsynchronousInterrupt.java @@ -13,10 +13,10 @@ import java.util.function.BiConsumer; * Class for handling asynchrounous interrupts. * *

By default, interrupts will occur on rising edge. Callbacks are disabled by default, and - * Enable() must be called before they will occur. + * enable() must be called before they will occur. * - *

Both rising and falling edge can be indiciated if both a rising and falling happen between - * callbacks. + *

Both rising and falling edges can be indicated in one callback if both a rising and falling + * edge occurred since the previous callback. * *

Synchronous interrupts are handled by the SynchronousInterrupt class. */