Skip to content

Commit a2dfb62

Browse files
DdystopiaAfoHT
authored andcommitted
chore: better safety comment
1 parent 2e70347 commit a2dfb62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtic-macros/src/codegen/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub fn codegen(ctxt: Context, app: &App, analysis: &Analysis) -> TokenStream2 {
192192
#[allow(non_snake_case)]
193193
#[doc(hidden)]
194194
pub fn #internal_waker_ident() -> ::core::task::Waker {
195-
// SAFETY: If `try_allocate` succeeds one must call `spawn`, which we do.
195+
// SAFETY: #exec_name is a valid pointer to an executor.
196196
unsafe {
197197
let exec = rtic::export::executor::AsyncTaskExecutor::#from_ptr_n_args(#name, &#exec_name);
198198
exec.waker(|| {

0 commit comments

Comments
 (0)