diff --git a/src/librustc/hir/intravisit.rs b/src/librustc/hir/intravisit.rs index 7527d7fb318dd..92a46cec1ce73 100644 --- a/src/librustc/hir/intravisit.rs +++ b/src/librustc/hir/intravisit.rs @@ -154,7 +154,7 @@ pub trait Visitor<'v> : Sized { /// hashed separately. /// /// **If for some reason you want the nested behavior, but don't - /// have a `Map` are your disposal:** then you should override the + /// have a `Map` at your disposal:** then you should override the /// `visit_nested_XXX` methods, and override this method to /// `panic!()`. This way, if a new `visit_nested_XXX` variant is /// added in the future, we will see the panic in your code and diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index b631d67e47365..093b3346877d9 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -1008,7 +1008,7 @@ pub enum QPath { /// /// UFCS source paths can desugar into this, with `Vec::new` turning into /// `::new`, and `T::X::Y::method` into `<<::X>::Y>::method`, - /// the `X` and `Y` nodes being each a `TyPath(QPath::TypeRelative(..))`. + /// the `X` and `Y` nodes each being a `TyPath(QPath::TypeRelative(..))`. TypeRelative(P, P) }