@@ -240,7 +240,7 @@ impl Layout {
240
240
///
241
241
/// Returns `Some((k, offset))`, where `k` is layout of the concatenated
242
242
/// record and `offset` is the relative location, in bytes, of the
243
- /// start of the `next` embedded witnin the concatenated record
243
+ /// start of the `next` embedded within the concatenated record
244
244
/// (assuming that the record itself starts at offset 0).
245
245
///
246
246
/// On arithmetic overflow, returns `None`.
@@ -297,7 +297,7 @@ impl Layout {
297
297
///
298
298
/// Returns `(k, offset)`, where `k` is layout of the concatenated
299
299
/// record and `offset` is the relative location, in bytes, of the
300
- /// start of the `next` embedded witnin the concatenated record
300
+ /// start of the `next` embedded within the concatenated record
301
301
/// (assuming that the record itself starts at offset 0).
302
302
///
303
303
/// (The `offset` is always the same as `self.size()`; we use this
@@ -544,7 +544,7 @@ pub unsafe trait Alloc {
544
544
/// practice this means implementors should eschew allocating,
545
545
/// especially from `self` (directly or indirectly).
546
546
///
547
- /// Implementions of the allocation and reallocation methods
547
+ /// Implementations of the allocation and reallocation methods
548
548
/// (e.g. `alloc`, `alloc_one`, `realloc`) are discouraged from
549
549
/// panicking (or aborting) in the event of memory exhaustion;
550
550
/// instead they should return an appropriate error from the
0 commit comments