diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2018-11-10 19:31:49 +0700 |
|---|---|---|
| committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2018-11-10 19:31:49 +0700 |
| commit | 9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd (patch) | |
| tree | 00295620c9e0ff493223fa15d8048ac3deeed2b5 /src/libcore/alloc.rs | |
| parent | 0366ccafa6f1740acc9c26797e08d7691d835393 (diff) | |
| download | rust-9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd.tar.gz rust-9b4d68e53bd0eaa1ef3e402d0227f2d9ef1970dd.zip | |
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 113a85abecb..9bd56442695 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -506,7 +506,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 @@ -757,7 +757,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. |
