Skip to content

Commit cca954e

Browse files
committed
Change "alloc/realloc" to "realloc/dealloc"
1 parent b2392fd commit cca954e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/alloc.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ pub unsafe trait Alloc {
10461046
/// Captures a common usage pattern for allocators.
10471047
///
10481048
/// The returned block is suitable for passing to the
1049-
/// `alloc`/`realloc` methods of this allocator.
1049+
/// `realloc`/`dealloc` methods of this allocator.
10501050
///
10511051
/// Note to implementors: If this returns `Ok(ptr)`, then `ptr`
10521052
/// must be considered "currently allocated" and must be
@@ -1112,7 +1112,7 @@ pub unsafe trait Alloc {
11121112
/// Captures a common usage pattern for allocators.
11131113
///
11141114
/// The returned block is suitable for passing to the
1115-
/// `alloc`/`realloc` methods of this allocator.
1115+
/// `realloc`/`dealloc` methods of this allocator.
11161116
///
11171117
/// Note to implementors: If this returns `Ok(ptr)`, then `ptr`
11181118
/// must be considered "currently allocated" and must be
@@ -1159,7 +1159,7 @@ pub unsafe trait Alloc {
11591159
/// Captures a common usage pattern for allocators.
11601160
///
11611161
/// The returned block is suitable for passing to the
1162-
/// `alloc`/`realloc` methods of this allocator.
1162+
/// `realloc`/`dealloc` methods of this allocator.
11631163
///
11641164
/// # Safety
11651165
///

0 commit comments

Comments
 (0)