Skip to content

Commit 5731945

Browse files
authored
Apply suggestions from code review
typos Co-Authored-By: RalfJung <[email protected]>
1 parent b00fd57 commit 5731945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/interpret/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ where
910910
/// create such an allocation.
911911
/// This is essentially `force_to_memplace`.
912912
///
913-
/// This supports unsized types and returnes the computed size to avoid some
913+
/// This supports unsized types and returns the computed size to avoid some
914914
/// redundant computation when copying; use `force_allocation` for a simpler, sized-only
915915
/// version.
916916
pub fn force_allocation_maybe_sized(

src/librustc_mir/interpret/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tcx, M>
7676

7777
for (i, method) in methods.iter().enumerate() {
7878
if let Some((def_id, substs)) = *method {
79-
// resolve for vtable: insert thims where needed
79+
// resolve for vtable: insert shims where needed
8080
let substs = self.subst_and_normalize_erasing_regions(substs)?;
8181
let instance = ty::Instance::resolve_for_vtable(
8282
*self.tcx,

0 commit comments

Comments
 (0)