@@ -61,7 +61,7 @@ pub use std::alloc::Global;
61
61
/// of the allocator registered with the `#[global_allocator]` attribute
62
62
/// if there is one, or the `std` crate’s default.
63
63
///
64
- /// This function is expected to be deprecated in favor of the `alloc ` method
64
+ /// This function is expected to be deprecated in favor of the `allocate ` method
65
65
/// of the [`Global`] type when it and the [`Allocator`] trait become stable.
66
66
///
67
67
/// # Safety
@@ -106,7 +106,7 @@ pub unsafe fn alloc(layout: Layout) -> *mut u8 {
106
106
/// of the allocator registered with the `#[global_allocator]` attribute
107
107
/// if there is one, or the `std` crate’s default.
108
108
///
109
- /// This function is expected to be deprecated in favor of the `dealloc ` method
109
+ /// This function is expected to be deprecated in favor of the `deallocate ` method
110
110
/// of the [`Global`] type when it and the [`Allocator`] trait become stable.
111
111
///
112
112
/// # Safety
@@ -125,7 +125,7 @@ pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) {
125
125
/// of the allocator registered with the `#[global_allocator]` attribute
126
126
/// if there is one, or the `std` crate’s default.
127
127
///
128
- /// This function is expected to be deprecated in favor of the `realloc` method
128
+ /// This function is expected to be deprecated in favor of the `grow` and `shrink` methods
129
129
/// of the [`Global`] type when it and the [`Allocator`] trait become stable.
130
130
///
131
131
/// # Safety
@@ -145,7 +145,7 @@ pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8
145
145
/// of the allocator registered with the `#[global_allocator]` attribute
146
146
/// if there is one, or the `std` crate’s default.
147
147
///
148
- /// This function is expected to be deprecated in favor of the `alloc_zeroed ` method
148
+ /// This function is expected to be deprecated in favor of the `allocate_zeroed ` method
149
149
/// of the [`Global`] type when it and the [`Allocator`] trait become stable.
150
150
///
151
151
/// # Safety
0 commit comments