Skip to content

Commit ce3db1b

Browse files
fix typo
Co-authored-by: Jubilee <[email protected]>
1 parent 4913884 commit ce3db1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/sys/pal/unix/alloc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ cfg_if::cfg_if! {
7373
#[inline]
7474
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
7575
let mut out = ptr::null_mut();
76-
// We prefer posix_memalign over aligned_malloc since it is more widely available, and
77-
// since with aligned_malloc, implementations are making almost arbitrary choices for
76+
// We prefer posix_memalign over aligned_alloc since it is more widely available, and
77+
// since with aligned_alloc, implementations are making almost arbitrary choices for
7878
// which alignments are "supported", making it hard to use. For instance, some
7979
// implementations require the size to be a multiple of the alignment (wasi emmalloc),
8080
// while others require the alignment to be at least the pointer size (Illumos, macOS).

0 commit comments

Comments
 (0)