Skip to content

Commit

Permalink
doc: Fix new errors
Browse files Browse the repository at this point in the history
Merges: #126
  • Loading branch information
chrysn authored Sep 16, 2024
2 parents 81eb72d + 6164a46 commit d7858f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl ADCLine {

/// Initialize an ADC line identified by the line number it is assigned on the board
///
/// Safety: See [.init()]
/// Safety: See [Self::init()]
pub unsafe fn from_number(line: u32) -> Result<Self, i32> {
let line = riot_sys::macro_ADC_LINE(line);
Self::init(line)
Expand Down
2 changes: 1 addition & 1 deletion src/async_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use core::future::Future;
/// While this can legally be implemented without unsafe, practical use will require unsafe, and
/// that requires sticking to the rules:
///
/// * Whenever [.poll()] is called, do whatever the future needs to do after having been awoken. If
/// * Whenever [Self::poll()] is called, do whatever the future needs to do after having been awoken. If
/// this returns [core::task::Poll::Pending] (and the future wants to be polled ever again), it
/// must then pass on the `arg` to some RIOT callback setter together with a static function of a
/// suitable signature. Conventionally, that function is called `Self::callback()`.
Expand Down
2 changes: 1 addition & 1 deletion src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl GPIO {
/// # }
/// ```
///
/// See [.from_c()] for safety constraints.
/// See [Self::from_c()] for safety constraints.
pub fn from_port_and_pin(port: u32, pin: u32) -> Option<Self> {
Self::from_c(unsafe { riot_sys::macro_GPIO_PIN(port, pin) })
}
Expand Down

0 comments on commit d7858f5

Please sign in to comment.