Skip to content

Commit 8b33dfa

Browse files
authored
Rollup merge of #84574 - hi-rustin:rustin-patch-typo, r=jyn514
rustdoc: Fix typos in maybe_inline_local fn Introduced by #79061. r? `@jyn514`
2 parents 6d277c7 + 0d9a1c6 commit 8b33dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/visit_ast.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
150150
om
151151
}
152152

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

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

0 commit comments

Comments
 (0)