Skip to content

Commit 5ef6520

Browse files
committed
Change IoPin try_switch_to_* to try_into_*
1 parent 1d24475 commit 5ef6520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/digital.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ where TInput : InputPin + IoPin<TInput, TOutput>,
185185
/// Tries to convert this pin to input mode.
186186
///
187187
/// If the pin is already in input mode, this method should succeed.
188-
fn try_switch_to_input_pin(self) -> Result<TInput, Self::Error>;
188+
fn try_into_input_pin(self) -> Result<TInput, Self::Error>;
189189

190190
/// Tries to convert this pin to output mode with the given initial state.
191191
///
192192
/// If the pin is already in the requested state, this method should
193193
/// succeed.
194-
fn try_switch_to_output_pin(self, state: PinState) -> Result<TOutput, Self::Error>;
194+
fn try_into_output_pin(self, state: PinState) -> Result<TOutput, Self::Error>;
195195
}

0 commit comments

Comments
 (0)