about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-10-11 02:36:01 +0100
committervarkor <github@varkor.com>2019-10-25 23:26:27 +0100
commitaf2b49777659c014e8e0e6827c379635003cfd69 (patch)
tree61744d272291096767b1113df834b562e369266a
parent66d7ef077a23138553c92ab8053416da51ab3b4f (diff)
downloadrust-af2b49777659c014e8e0e6827c379635003cfd69.tar.gz
rust-af2b49777659c014e8e0e6827c379635003cfd69.zip
Improve comments
-rw-r--r--src/librustc/hir/intravisit.rs2
-rw-r--r--src/librustc/hir/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/hir/intravisit.rs b/src/librustc/hir/intravisit.rs
index 05bdd0887f0..920635d8387 100644
--- a/src/librustc/hir/intravisit.rs
+++ b/src/librustc/hir/intravisit.rs
@@ -203,7 +203,7 @@ pub trait Visitor<'v>: Sized {
 
     /// Invoked to visit the body of a function, method or closure. Like
     /// visit_nested_item, does nothing by default unless you override
-    /// `nested_visit_map` to return other htan `None`, in which case it will walk
+    /// `nested_visit_map` to return other than `None`, in which case it will walk
     /// the body.
     fn visit_nested_body(&mut self, id: BodyId) {
         let opt_body = self.nested_visit_map().intra().map(|map| map.body(id));
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs
index 38c84ad3347..19959c11d09 100644
--- a/src/librustc/hir/mod.rs
+++ b/src/librustc/hir/mod.rs
@@ -2512,7 +2512,7 @@ pub enum ItemKind {
     Fn(P<FnDecl>, FnHeader, Generics, BodyId),
     /// A module.
     Mod(Mod),
-    /// An external module.
+    /// An external module, e.g. `extern { .. }`.
     ForeignMod(ForeignMod),
     /// Module-level inline assembly (from `global_asm!`).
     GlobalAsm(P<GlobalAsm>),