Skip to content

Commit 4ec9703

Browse files
authored
Rollup merge of #63669 - Dante-Broggi:patch-1, r=jonas-schievink
fix typos in mir/interpret
2 parents b60f245 + a7c34f1 commit 4ec9703

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/mir/interpret/allocation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
306306
///
307307
/// zsts can't be read out of two reasons:
308308
/// * byteorder cannot work with zero element buffers
309-
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
309+
/// * in order to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
310310
/// being valid for ZSTs
311311
///
312312
/// It is the caller's responsibility to check bounds and alignment beforehand.

src/librustc_mir/interpret/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
297297
/// and `align`. On success, returns `None` for zero-sized accesses (where
298298
/// nothing else is left to do) and a `Pointer` to use for the actual access otherwise.
299299
/// Crucially, if the input is a `Pointer`, we will test it for liveness
300-
/// *even of* the size is 0.
300+
/// *even if* the size is 0.
301301
///
302302
/// Everyone accessing memory based on a `Scalar` should use this method to get the
303303
/// `Pointer` they need. And even if you already have a `Pointer`, call this method

0 commit comments

Comments
 (0)