diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-13 11:03:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-13 11:03:11 +0200 |
| commit | bc6659a8fef000c96665f6ba8d6ddcd1ef89623b (patch) | |
| tree | 7887050320d236b12a5d5ec4e36eb535108ba922 /src/liballoc/allocator.rs | |
| parent | 9191fe1ef4228ccfa6d573f9546f1e315b433960 (diff) | |
| parent | 3ab86fbab281ca059731c31fa2aee5d9afc7e6dc (diff) | |
| download | rust-bc6659a8fef000c96665f6ba8d6ddcd1ef89623b.tar.gz rust-bc6659a8fef000c96665f6ba8d6ddcd1ef89623b.zip | |
Rollup merge of #43814 - Eijebong:fix_typos2, r=petrochenkov
Fix some typos Follow up of #43794 If refined my script a little bit and found some more.
Diffstat (limited to 'src/liballoc/allocator.rs')
| -rw-r--r-- | src/liballoc/allocator.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/allocator.rs b/src/liballoc/allocator.rs index 3ea7d349c9c..7b6700bfd49 100644 --- a/src/liballoc/allocator.rs +++ b/src/liballoc/allocator.rs @@ -240,7 +240,7 @@ impl Layout { /// /// Returns `Some((k, offset))`, where `k` is layout of the concatenated /// record and `offset` is the relative location, in bytes, of the - /// start of the `next` embedded witnin the concatenated record + /// start of the `next` embedded within the concatenated record /// (assuming that the record itself starts at offset 0). /// /// On arithmetic overflow, returns `None`. @@ -297,7 +297,7 @@ impl Layout { /// /// Returns `(k, offset)`, where `k` is layout of the concatenated /// record and `offset` is the relative location, in bytes, of the - /// start of the `next` embedded witnin the concatenated record + /// start of the `next` embedded within the concatenated record /// (assuming that the record itself starts at offset 0). /// /// (The `offset` is always the same as `self.size()`; we use this @@ -544,7 +544,7 @@ pub unsafe trait Alloc { /// practice this means implementors should eschew allocating, /// especially from `self` (directly or indirectly). /// - /// Implementions of the allocation and reallocation methods + /// Implementations of the allocation and reallocation methods /// (e.g. `alloc`, `alloc_one`, `realloc`) are discouraged from /// panicking (or aborting) in the event of memory exhaustion; /// instead they should return an appropriate error from the |
