diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-11 00:21:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-11 00:21:25 +0100 |
| commit | 17ae50765ea73e2cd05c152f235f3e41efa5f518 (patch) | |
| tree | 53e2d491158e0b4b39d7f5395feb5f1c8c39d690 /src/libcore/alloc.rs | |
| parent | 417b10a0e3dd1ee8f677007763f830f34d320644 (diff) | |
| parent | 9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd (diff) | |
| download | rust-17ae50765ea73e2cd05c152f235f3e41efa5f518.tar.gz rust-17ae50765ea73e2cd05c152f235f3e41efa5f518.zip | |
Rollup merge of #55844 - waywardmonkeys:typo-fixes, r=varkor
Fix documentation typos.
Diffstat (limited to 'src/libcore/alloc.rs')
| -rw-r--r-- | src/libcore/alloc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index dd3e8da18a9..58639808fae 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -523,7 +523,7 @@ pub unsafe trait GlobalAlloc { ptr } - /// Shink or grow a block of memory to the given `new_size`. + /// Shrink or grow a block of memory to the given `new_size`. /// The block is described by the given `ptr` pointer and `layout`. /// /// If this returns a non-null pointer, then ownership of the memory block @@ -774,7 +774,7 @@ pub unsafe trait Alloc { // realloc. alloc_excess, realloc_excess /// Returns a pointer suitable for holding data described by - /// a new layout with `layout`’s alginment and a size given + /// a new layout with `layout`’s alignment and a size given /// by `new_size`. To /// accomplish this, this may extend or shrink the allocation /// referenced by `ptr` to fit the new layout. |
