mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Rollup merge of #63669 - Dante-Broggi:patch-1, r=jonas-schievink
fix typos in mir/interpret
This commit is contained in:
commit
4ec9703467
@ -306,7 +306,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||
///
|
||||
/// zsts can't be read out of two reasons:
|
||||
/// * byteorder cannot work with zero element buffers
|
||||
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
|
||||
/// * in order to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
|
||||
/// being valid for ZSTs
|
||||
///
|
||||
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||
|
@ -297,7 +297,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
|
||||
/// and `align`. On success, returns `None` for zero-sized accesses (where
|
||||
/// nothing else is left to do) and a `Pointer` to use for the actual access otherwise.
|
||||
/// Crucially, if the input is a `Pointer`, we will test it for liveness
|
||||
/// *even of* the size is 0.
|
||||
/// *even if* the size is 0.
|
||||
///
|
||||
/// Everyone accessing memory based on a `Scalar` should use this method to get the
|
||||
/// `Pointer` they need. And even if you already have a `Pointer`, call this method
|
||||
|
Loading…
Reference in New Issue
Block a user