Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
typos

Co-Authored-By: RalfJung <post@ralfj.de>
  • Loading branch information
RalfJung authored Apr 8, 2019
1 parent b00fd57 commit 5731945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ where
/// create such an allocation.
/// This is essentially `force_to_memplace`.
///
/// This supports unsized types and returnes the computed size to avoid some
/// This supports unsized types and returns the computed size to avoid some
/// redundant computation when copying; use `force_allocation` for a simpler, sized-only
/// version.
pub fn force_allocation_maybe_sized(
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tcx, M>

for (i, method) in methods.iter().enumerate() {
if let Some((def_id, substs)) = *method {
// resolve for vtable: insert thims where needed
// resolve for vtable: insert shims where needed
let substs = self.subst_and_normalize_erasing_regions(substs)?;
let instance = ty::Instance::resolve_for_vtable(
*self.tcx,
Expand Down

0 comments on commit 5731945

Please sign in to comment.