Skip to content

Commit af2b497

Browse files
committed
Improve comments
1 parent 66d7ef0 commit af2b497

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/hir/intravisit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub trait Visitor<'v>: Sized {
203203

204204
/// Invoked to visit the body of a function, method or closure. Like
205205
/// visit_nested_item, does nothing by default unless you override
206-
/// `nested_visit_map` to return other htan `None`, in which case it will walk
206+
/// `nested_visit_map` to return other than `None`, in which case it will walk
207207
/// the body.
208208
fn visit_nested_body(&mut self, id: BodyId) {
209209
let opt_body = self.nested_visit_map().intra().map(|map| map.body(id));

src/librustc/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ pub enum ItemKind {
25122512
Fn(P<FnDecl>, FnHeader, Generics, BodyId),
25132513
/// A module.
25142514
Mod(Mod),
2515-
/// An external module.
2515+
/// An external module, e.g. `extern { .. }`.
25162516
ForeignMod(ForeignMod),
25172517
/// Module-level inline assembly (from `global_asm!`).
25182518
GlobalAsm(P<GlobalAsm>),

0 commit comments

Comments
 (0)