Rollup merge of #45105 - camsteffen:patch-2, r=pnkfelix

Fix rustc documentation typo

I'm new to rustc but this looks like a typo.
This commit is contained in:
kennytm 2017-10-12 16:14:25 +08:00
commit ff53dc7166
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -41,7 +41,7 @@ use super::intravisit::Visitor;
/// - Example: Lifetime resolution, which wants to bring lifetimes declared on the
/// impl into scope while visiting the impl-items, and then back out again.
/// - How: Implement `intravisit::Visitor` and override the
/// `visit_nested_map()` methods to return
/// `nested_visit_map()` methods to return
/// `NestedVisitorMap::All`. Walk your crate with
/// `intravisit::walk_crate()` invoked on `tcx.hir.krate()`.
/// - Pro: Visitor methods for any kind of HIR node, not just item-like things.