Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Oct 25, 2019
1 parent 66d7ef0 commit af2b497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/hir/intravisit.rs
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/hir/mod.rs
Expand Up @@ -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>),
Expand Down

0 comments on commit af2b497

Please sign in to comment.