about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-04-08 10:29:22 +0200
committerGitHub <noreply@github.com>2019-04-08 10:29:22 +0200
commit5731945187785e87352cf112380fad685db89636 (patch)
tree7f4601efc663c73879aabfc5909f42d366fae295 /src
parentb00fd57075263f928a59b0d375f004427077c53a (diff)
downloadrust-5731945187785e87352cf112380fad685db89636.tar.gz
rust-5731945187785e87352cf112380fad685db89636.zip
Apply suggestions from code review
typos

Co-Authored-By: RalfJung <post@ralfj.de>
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/interpret/place.rs2
-rw-r--r--src/librustc_mir/interpret/traits.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/interpret/place.rs b/src/librustc_mir/interpret/place.rs
index 93bef813ba6..048d51acaf2 100644
--- a/src/librustc_mir/interpret/place.rs
+++ b/src/librustc_mir/interpret/place.rs
@@ -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(
diff --git a/src/librustc_mir/interpret/traits.rs b/src/librustc_mir/interpret/traits.rs
index 94e7f883f57..d76d3a33016 100644
--- a/src/librustc_mir/interpret/traits.rs
+++ b/src/librustc_mir/interpret/traits.rs
@@ -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,