diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-19 20:40:46 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-19 20:40:46 +0200 | 
| commit | 3c2d9c2dbe0fd764b4af473a75fb4f44616f6b4c (patch) | |
| tree | 3c3d7e96009ee0b97293c6308676c13d3c3bb55a /library/std/src/sys/pal/unix/alloc.rs | |
| parent | e7772f20881282ede329ed2c19eb479fded4aecd (diff) | |
| download | rust-3c2d9c2dbe0fd764b4af473a75fb4f44616f6b4c.tar.gz rust-3c2d9c2dbe0fd764b4af473a75fb4f44616f6b4c.zip | |
fix typo
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
Diffstat (limited to 'library/std/src/sys/pal/unix/alloc.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/alloc.rs | 4 | 
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). | 
