Skip to content

Commit

Permalink
Rollup merge of rust-lang#84574 - hi-rustin:rustin-patch-typo, r=jyn514
Browse files Browse the repository at this point in the history
rustdoc: Fix typos in maybe_inline_local fn

Introduced by rust-lang#79061.

r? `@jyn514`
  • Loading branch information
m-ou-se authored Apr 26, 2021
2 parents 6d277c7 + 0d9a1c6 commit 8b33dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/visit_ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
om
}

/// Tries to resolve the target of a `crate use` statement and inlines the
/// Tries to resolve the target of a `pub use` statement and inlines the
/// target if it is defined locally and would not be documented otherwise,
/// or when it is specifically requested with `please_inline`.
/// (the latter is the case when the import is marked `doc(inline)`)
Expand Down Expand Up @@ -183,7 +183,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
|| use_attrs.lists(sym::doc).has_word(sym::hidden);

// For cross-crate impl inlining we need to know whether items are
// reachable in documentation -- a previously nonreachable item can be
// reachable in documentation -- a previously unreachable item can be
// made reachable by cross-crate inlining which we're checking here.
// (this is done here because we need to know this upfront).
if !res_did.is_local() && !is_no_inline {
Expand Down

0 comments on commit 8b33dfa

Please sign in to comment.