Skip to content

Commit 3e62af2

Browse files
committed
typo fix
1 parent 9e896c0 commit 3e62af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tlsf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ unsafe impl GlobalAlloc for Heap {
155155
}
156156

157157
unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
158-
// SAFETY: `layout.align()` is a power of two, and the size preconidtion
159-
// is upheld by the caller
158+
// SAFETY: `layout.align()` is a power of two,
159+
// and the size precondition is upheld by the caller.
160160
let new_layout =
161161
unsafe { core::alloc::Layout::from_size_align_unchecked(new_size, layout.align()) };
162162
self.realloc(ptr, new_layout)

0 commit comments

Comments
 (0)