Skip to content

Commit ccff6eb

Browse files
committed
Add documentation to the function
1 parent 64b10ed commit ccff6eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/generate/peripheral.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
9292
Self::PTR
9393
}
9494

95+
///Steal an instance of this peripheral
9596
pub unsafe fn steal(&self) -> Self {
9697
Self { _marker: PhantomData }
9798
}
@@ -155,6 +156,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
155156
Self::PTR
156157
}
157158

159+
///Steal an instance of this peripheral
158160
pub unsafe fn steal(&self) -> Self {
159161
Self { _marker: PhantomData }
160162
}

0 commit comments

Comments
 (0)