diff --git a/src/librustc/hir/intravisit.rs b/src/librustc/hir/intravisit.rs index fb8d6618e89a5..cc6d61c21c696 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 3d9fa4e5a0621..fe086347884b0 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -1014,7 +1014,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) }