File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ pub trait InputPin {
191
191
/// TOutputPin : OutputPin<Error = TError> + IoPin<TInputPin, TOutputPin, Error = TError>,
192
192
/// {
193
193
/// // Ping
194
- /// pin.try_set_low ()?;
194
+ /// pin.set_low ()?;
195
195
/// delay_fn(Duration::from_millis(10));
196
- /// pin.try_set_high ()?;
196
+ /// pin.set_high ()?;
197
197
///
198
198
/// // Read
199
- /// let pin = pin.try_into_input_pin ()?;
199
+ /// let pin = pin.into_input_pin ()?;
200
200
/// delay_fn(Duration::from_millis(10));
201
- /// pin.try_is_high ()
201
+ /// pin.is_high ()
202
202
/// }
203
203
/// ```
204
204
pub trait IoPin < TInput , TOutput >
@@ -212,11 +212,11 @@ where
212
212
/// Tries to convert this pin to input mode.
213
213
///
214
214
/// If the pin is already in input mode, this method should succeed.
215
- fn try_into_input_pin ( self ) -> Result < TInput , Self :: Error > ;
215
+ fn into_input_pin ( self ) -> Result < TInput , Self :: Error > ;
216
216
217
217
/// Tries to convert this pin to output mode with the given initial state.
218
218
///
219
219
/// If the pin is already in the requested state, this method should
220
220
/// succeed.
221
- fn try_into_output_pin ( self , state : PinState ) -> Result < TOutput , Self :: Error > ;
221
+ fn into_output_pin ( self , state : PinState ) -> Result < TOutput , Self :: Error > ;
222
222
}
You can’t perform that action at this time.
0 commit comments