We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4913884 commit ce3db1bCopy full SHA for ce3db1b
std/src/sys/pal/unix/alloc.rs
@@ -73,8 +73,8 @@ cfg_if::cfg_if! {
73
#[inline]
74
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
75
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
+ // 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
78
// which alignments are "supported", making it hard to use. For instance, some
79
// implementations require the size to be a multiple of the alignment (wasi emmalloc),
80
// while others require the alignment to be at least the pointer size (Illumos, macOS).
0 commit comments