Skip to content

Commit

Permalink
Fix accidental doc-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Jul 7, 2024
1 parent ece1bc9 commit da69164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stabby-abi/src/alloc/allocators/rust_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" fn alloc(requested: crate::alloc::Layout) -> *mut () {
let Ok(layout) = core::alloc::Layout::from_size_align(requested.size, requested.align) else {
return core::ptr::null_mut();
};
/// SAFETY: The layout is always non-zero-sized
// SAFETY: The layout is always non-zero-sized
let alloc_start = unsafe { alloc_rs::alloc::alloc(layout) };
let ret = // SAFETY: the addition is indeed in-bound.
unsafe { alloc_start.add(layout.align().max(core::mem::size_of::<RustAllocPrefix>())) };
Expand Down

0 comments on commit da69164

Please sign in to comment.