about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/alloc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/pal/unix/alloc.rs')
-rw-r--r--library/std/src/sys/pal/unix/alloc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/unix/alloc.rs b/library/std/src/sys/pal/unix/alloc.rs
index 242a054199f..eb3a57c212b 100644
--- a/library/std/src/sys/pal/unix/alloc.rs
+++ b/library/std/src/sys/pal/unix/alloc.rs
@@ -73,8 +73,8 @@ cfg_if::cfg_if! {
         #[inline]
         unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
             let mut out = ptr::null_mut();
-            // We prefer posix_memalign over aligned_malloc since it is more widely available, and
-            // since with aligned_malloc, implementations are making almost arbitrary choices for
+            // We prefer posix_memalign over aligned_alloc since it is more widely available, and
+            // since with aligned_alloc, implementations are making almost arbitrary choices for
             // which alignments are "supported", making it hard to use. For instance, some
             // implementations require the size to be a multiple of the alignment (wasi emmalloc),
             // while others require the alignment to be at least the pointer size (Illumos, macOS).