about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2022-03-18 14:13:06 -0300
committerSantiago Pastorino <spastorino@gmail.com>2022-03-18 14:13:06 -0300
commit91b52148ebc16f41632930344bdbe4e093f1970e (patch)
tree3010a7714f7d656f917738f8730aa4df10335f62
parentf3ebafac913472e81c85574fc3d6645070d4e5bf (diff)
downloadrust-91b52148ebc16f41632930344bdbe4e093f1970e.tar.gz
rust-91b52148ebc16f41632930344bdbe4e093f1970e.zip
Minor documentation type fixes h/t @pierwill
-rw-r--r--compiler/rustc_trait_selection/src/traits/coherence.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs
index 5e97818a526..8698384800c 100644
--- a/compiler/rustc_trait_selection/src/traits/coherence.rs
+++ b/compiler/rustc_trait_selection/src/traits/coherence.rs
@@ -379,7 +379,7 @@ fn obligations_satisfiable<'cx, 'tcx, T: Debug + ToTrace<'tcx>>(
     }
 }
 
-/// Try to prove that a negative impl exist for the given obligation and their super predicates.
+/// Try to prove that a negative impl exist for the given obligation and its super predicates.
 #[instrument(level = "debug", skip(selcx))]
 fn negative_impl_exists<'cx, 'tcx>(
     selcx: &SelectionContext<'cx, 'tcx>,
@@ -393,7 +393,7 @@ fn negative_impl_exists<'cx, 'tcx>(
         return true;
     }
 
-    // Try to prove a negative obligation exist for super predicates
+    // Try to prove a negative obligation exists for super predicates
     for o in util::elaborate_predicates(infcx.tcx, iter::once(o.predicate)) {
         if resolve_negative_obligation(infcx, param_env, region_context, &o) {
             return true;