diff --git a/src/static-guarantees/design-contracts.md b/src/static-guarantees/design-contracts.md index a62fc3e0..6c3af65d 100644 --- a/src/static-guarantees/design-contracts.md +++ b/src/static-guarantees/design-contracts.md @@ -25,7 +25,7 @@ struct GpioConfig { periph: GPIO_CONFIG, } -impl Gpio { +impl GpioConfig { pub fn set_enable(&mut self, is_enabled: bool) { self.periph.modify(|_r, w| { w.enable().set_bit(is_enabled) diff --git a/src/static-guarantees/state-machines.md b/src/static-guarantees/state-machines.md index b7c24f17..5a27ffcf 100644 --- a/src/static-guarantees/state-machines.md +++ b/src/static-guarantees/state-machines.md @@ -60,7 +60,7 @@ struct GpioConfig { periph: GPIO_CONFIG, } -impl Gpio { +impl GpioConfig { pub fn set_enable(&mut self, is_enabled: bool) { self.periph.modify(|_r, w| { w.enable().set_bit(is_enabled)