Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
Co-Authored-By: RalfJung <post@ralfj.de>
  • Loading branch information
oli-obk and RalfJung authored Nov 25, 2018
1 parent a6ea01f commit 2472e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/interpret/allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
Some(size) => {
let size_with_null = Size::from_bytes((size + 1) as u64);
// Go through `get_bytes` for checks and AllocationExtra hooks.
// We read the null, so we include it in the requestm, but we want it removed
// We read the null, so we include it in the request, but we want it removed
// from the result!
Ok(&self.get_bytes(cx, ptr, size_with_null)?[..size])
}
Expand Down

0 comments on commit 2472e83

Please sign in to comment.