@@ -253,7 +253,7 @@ impl Layout {
253
253
254
254
/// Creates a layout describing the record for `self` followed by
255
255
/// `next`, including any necessary padding to ensure that `next`
256
- /// will be properly aligned. Note that the result layout will
256
+ /// will be properly aligned. Note that the resulting layout will
257
257
/// satisfy the alignment properties of both `self` and `next`.
258
258
///
259
259
/// The resulting layout will be the same as that of a C struct containing
@@ -387,7 +387,7 @@ impl fmt::Display for CannotReallocInPlace {
387
387
}
388
388
389
389
/// A memory allocator that can be registered as the standard library’s default
390
- /// though the `#[global_allocator]` attributes .
390
+ /// through the `#[global_allocator]` attribute .
391
391
///
392
392
/// Some of the methods require that a memory block be *currently
393
393
/// allocated* via an allocator. This means that:
@@ -458,7 +458,7 @@ pub unsafe trait GlobalAlloc {
458
458
/// # Errors
459
459
///
460
460
/// Returning a null pointer indicates that either memory is exhausted
461
- /// or `layout` does not meet allocator's size or alignment constraints.
461
+ /// or `layout` does not meet this allocator's size or alignment constraints.
462
462
///
463
463
/// Implementations are encouraged to return null on memory
464
464
/// exhaustion rather than aborting, but this is not
@@ -1045,7 +1045,7 @@ pub unsafe trait Alloc {
1045
1045
/// Captures a common usage pattern for allocators.
1046
1046
///
1047
1047
/// The returned block is suitable for passing to the
1048
- /// `alloc `/`realloc ` methods of this allocator.
1048
+ /// `realloc `/`dealloc ` methods of this allocator.
1049
1049
///
1050
1050
/// Note to implementors: If this returns `Ok(ptr)`, then `ptr`
1051
1051
/// must be considered "currently allocated" and must be
@@ -1111,7 +1111,7 @@ pub unsafe trait Alloc {
1111
1111
/// Captures a common usage pattern for allocators.
1112
1112
///
1113
1113
/// The returned block is suitable for passing to the
1114
- /// `alloc `/`realloc ` methods of this allocator.
1114
+ /// `realloc `/`dealloc ` methods of this allocator.
1115
1115
///
1116
1116
/// Note to implementors: If this returns `Ok(ptr)`, then `ptr`
1117
1117
/// must be considered "currently allocated" and must be
@@ -1158,7 +1158,7 @@ pub unsafe trait Alloc {
1158
1158
/// Captures a common usage pattern for allocators.
1159
1159
///
1160
1160
/// The returned block is suitable for passing to the
1161
- /// `alloc `/`realloc ` methods of this allocator.
1161
+ /// `realloc `/`dealloc ` methods of this allocator.
1162
1162
///
1163
1163
/// # Safety
1164
1164
///
0 commit comments