Skip to content

Commit 6a0c442

Browse files
Actually commit doc test fix 🥲
1 parent baefcf2 commit 6a0c442

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

embedded-hal-bus/src/i2c/refcell.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ use embedded_hal::i2c::{ErrorType, I2c};
2222
/// # address: u8,
2323
/// # }
2424
/// # impl<I2C: I2c> Sensor<I2C> {
25-
/// # pub const fn new(i2c: I2C, address: u8) -> Self {
25+
/// # pub fn new(i2c: I2C, address: u8) -> Self {
2626
/// # Self { i2c, address }
2727
/// # }
2828
/// # }
29-
/// # type PressureSensor = Sensor;
30-
/// # type TemperatureSensor = Sensor;
29+
/// # type PressureSensor<I2C> = Sensor<I2C>;
30+
/// # type TemperatureSensor<I2C> = Sensor<I2C>;
3131
/// # pub struct I2c0;
3232
/// # #[derive(Debug, Copy, Clone, Eq, PartialEq)]
3333
/// # pub enum Error { }

0 commit comments

Comments
 (0)