Skip to content

Commit dc37e9f

Browse files
committed
Auto merge of #30297 - oli-obk:doc/fix_intravisit, r=sanxiyn
r? @steveklabnik
2 parents 8eee0ef + 8e346f2 commit dc37e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_front/intravisit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! HIR walker. Each overridden visit method has full control over what
1212
//! happens with its node, it can do its own traversal of the node's children,
13-
//! call `visit::walk_*` to apply the default traversal algorithm, or prevent
13+
//! call `intravisit::walk_*` to apply the default traversal algorithm, or prevent
1414
//! deeper traversal by doing nothing.
1515
//!
1616
//! When visiting the HIR, the contents of nested items are NOT visited
@@ -45,7 +45,7 @@ pub enum FnKind<'a> {
4545
/// Each method of the Visitor trait is a hook to be potentially
4646
/// overridden. Each method's default implementation recursively visits
4747
/// the substructure of the input via the corresponding `walk` method;
48-
/// e.g. the `visit_mod` method by default calls `visit::walk_mod`.
48+
/// e.g. the `visit_mod` method by default calls `intravisit::walk_mod`.
4949
///
5050
/// Note that this visitor does NOT visit nested items by default
5151
/// (this is why the module is called `intravisit`, to distinguish it

0 commit comments

Comments
 (0)