Skip to content

Commit 56e6290

Browse files
Andreas Hindborgkawasaki
authored andcommitted
rust: block: mq: fix spelling in a safety comment
Add code block quotes to a safety comment. Signed-off-by: Andreas Hindborg <[email protected]>
1 parent 663581f commit 56e6290

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/block/mq/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl<T: Operations> Request<T> {
143143
// valid allocation.
144144
let wrapper_ptr =
145145
unsafe { bindings::blk_mq_rq_to_pdu(request_ptr).cast::<RequestDataWrapper>() };
146-
// SAFETY: By C API contract, wrapper_ptr points to a valid allocation
146+
// SAFETY: By C API contract, `wrapper_ptr` points to a valid allocation
147147
// and is not null.
148148
unsafe { NonNull::new_unchecked(wrapper_ptr) }
149149
}

0 commit comments

Comments
 (0)