From 01029ae813506352a9c4fb847c930644b8652a90 Mon Sep 17 00:00:00 2001 From: note_kdia Date: Wed, 18 Oct 2023 22:18:30 +0900 Subject: [PATCH] generic: Fix rustdoc example --- avr-hal-generic/src/adc.rs | 2 +- avr-hal-generic/src/port.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/avr-hal-generic/src/adc.rs b/avr-hal-generic/src/adc.rs index 2ee680c619..7d0d02b942 100644 --- a/avr-hal-generic/src/adc.rs +++ b/avr-hal-generic/src/adc.rs @@ -125,7 +125,7 @@ impl> AdcChannel for Channel { /// 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); diff --git a/avr-hal-generic/src/port.rs b/avr-hal-generic/src/port.rs index 1ecc2757c0..676602c68b 100644 --- a/avr-hal-generic/src/port.rs +++ b/avr-hal-generic/src/port.rs @@ -430,7 +430,7 @@ impl Pin, 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