Skip to content

Commit

Permalink
generic: Fix rustdoc example
Browse files Browse the repository at this point in the history
  • Loading branch information
note-kdia authored and Rahix committed Oct 19, 2023
1 parent 7b3e82a commit 01029ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avr-hal-generic/src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<H, ADC: AdcOps<H>> AdcChannel<H, ADC> for Channel<H, ADC> {
/// let pins = atmega_hal::pins!(dp);
/// let mut adc = atmega_hal::Adc::new(dp.ADC, Default::default());
///
/// let a0 = dp.pc0.into_analog_input(&mut adc);
/// let a0 = pins.pc0.into_analog_input(&mut adc);
///
/// // the following two calls are equivalent
/// let voltage = a0.analog_read(&mut adc);
Expand Down
2 changes: 1 addition & 1 deletion avr-hal-generic/src/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ impl<PIN: PinOps, IMODE: mode::InputMode> Pin<mode::Input<IMODE>, PIN> {
/// let pins = atmega_hal::pins!(dp);
/// let mut adc = atmega_hal::Adc::new(dp.ADC, Default::default());
///
/// let a0 = dp.pc0.into_analog_input(&mut adc);
/// let a0 = pins.pc0.into_analog_input(&mut adc);
///
/// let voltage = a0.analog_read(&mut adc);
/// // ^- this is equivalent to -v
Expand Down

0 comments on commit 01029ae

Please sign in to comment.