Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce3db1b

Browse files
fix typo
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
1 parent4913884 commitce3db1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ cfg_if::cfg_if! {
7373
#[inline]
7474
unsafefn aligned_malloc(layout:&Layout) ->*mutu8{
7575
letmut out = ptr::null_mut();
76-
// We prefer posix_memalign overaligned_malloc since it is more widely available, and
77-
// since withaligned_malloc, implementations are making almost arbitrary choices for
76+
// We prefer posix_memalign overaligned_alloc since it is more widely available, and
77+
// since withaligned_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)

[8]ページ先頭

©2009-2025 Movatter.jp