Skip to content

Commit d6eb609

Browse files
committed
fmt
1 parent 43b7708 commit d6eb609

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/std/src/sys/alloc/vexos.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,31 @@ unsafe impl dlmalloc::Allocator for Vexos {
6262
unsafe impl GlobalAlloc for System {
6363
#[inline]
6464
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
65-
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
65+
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
6666
// guarantees unique and non-reentrant access to the allocator.
6767
// Calling malloc() is safe because preconditions on this function match the trait method preconditions.
6868
unsafe { DLMALLOC.malloc(layout.size(), layout.align()) }
6969
}
7070

7171
#[inline]
7272
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
73-
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
73+
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
7474
// guarantees unique and non-reentrant access to the allocator.
7575
// Calling calloc() is safe because preconditions on this function match the trait method preconditions.
7676
unsafe { DLMALLOC.calloc(layout.size(), layout.align()) }
7777
}
7878

7979
#[inline]
8080
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
81-
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
81+
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
8282
// guarantees unique and non-reentrant access to the allocator.
8383
// Calling free() is safe because preconditions on this function match the trait method preconditions.
8484
unsafe { DLMALLOC.free(ptr, layout.size(), layout.align()) }
8585
}
8686

8787
#[inline]
8888
unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
89-
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
89+
// SAFETY: DLMALLOC access is guaranteed to be safe because we are a single-threaded target, which
9090
// guarantees unique and non-reentrant access to the allocator.
9191
// Calling realloc() is safe because preconditions on this function match the trait method preconditions.
9292
unsafe { DLMALLOC.realloc(ptr, layout.size(), layout.align(), new_size) }

0 commit comments

Comments
 (0)