Fix some typos

This commit is contained in:
Dirk Stolle
2023-05-08 23:25:01 +02:00
parent d0703f83db
commit 0584312ef0
28 changed files with 41 additions and 41 deletions

View File

@ -250,7 +250,7 @@ impl RtcDriver {
// Call after clearing alarm, so the callback can set another alarm.
// safety:
// - we can ignore the possiblity of `f` being unset (null) because of the safety contract of `allocate_alarm`.
// - we can ignore the possibility of `f` being unset (null) because of the safety contract of `allocate_alarm`.
// - other than that we only store valid function pointers into alarm.callback
let f: fn(*mut ()) = unsafe { mem::transmute(alarm.callback.get()) };
f(alarm.ctx.get());