Skip to content

Commit 88fa9b3

Browse files
committed
Fix safety comment format
1 parent 055329c commit 88fa9b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hal/src/peripherals/flash_controller.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl<'gcr, 'icc> FlashController<'gcr, 'icc> {
242242
Ok(())
243243
}
244244

245-
/// SAFETY:
245+
/// # Safety
246246
///
247247
/// Writes must not corrupt potentially executable instructions of the program.
248248
/// Callers must ensure that the following condition is met:
@@ -301,7 +301,7 @@ impl<'gcr, 'icc> FlashController<'gcr, 'icc> {
301301
/// Writes less than 128 bits (16 bytes) of data to flash.
302302
/// Data needs to fit within one flash word (16 bytes).
303303
///
304-
/// SAFETY:
304+
/// # Safety
305305
///
306306
/// Writes must not corrupt potentially executable instructions of the program.
307307
/// Callers must ensure that the following condition is met:
@@ -344,7 +344,7 @@ impl<'gcr, 'icc> FlashController<'gcr, 'icc> {
344344
/// Writes 128 bits (16 bytes) of data to flash.
345345
/// Address must be 128-bit aligned.
346346
///
347-
/// SAFETY:
347+
/// # Safety
348348
///
349349
/// Writes must not corrupt potentially executable instructions of the program.
350350
/// Callers must ensure that the following condition is met:

0 commit comments

Comments
 (0)