Skip to content

Commit 190dfdc

Browse files
authored
fix inverted logic in docs
1 parent 43cc9b9 commit 190dfdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embedded-hal-async/src/digital.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub trait Wait: embedded_hal::digital::ErrorType {
5151

5252
/// Wait for the pin to undergo a transition from low to high.
5353
///
54-
/// If the pin is already low, this does *not* return immediately, it'll wait for the
55-
/// pin to go high and then low again.
54+
/// If the pin is already high, this does *not* return immediately, it'll wait for the
55+
/// pin to go low and then high again.
5656
fn wait_for_rising_edge<'a>(&'a mut self) -> Self::WaitForRisingEdgeFuture<'a>;
5757

5858
/// The future returned from `wait_for_falling_edge`.

0 commit comments

Comments
 (0)