diff options
| author | hi-rustin <rustin.liu@gmail.com> | 2021-04-26 13:43:30 +0800 |
|---|---|---|
| committer | hi-rustin <rustin.liu@gmail.com> | 2021-04-26 13:43:30 +0800 |
| commit | 0d9a1c6762e28261b9aed18f37151483d0fbbc6b (patch) | |
| tree | 75f5b87a5c3602d15e82c374c854eb0ac78b55df | |
| parent | 5da10c01214a3d3ebec65b8ba6effada92a0673f (diff) | |
rustdoc: Fix typo for maybe_inline_local fn
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs index 3538182427a..c9071eea78b 100644 --- a/src/librustdoc/visit_ast.rs +++ b/src/librustdoc/visit_ast.rs @@ -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)`) @@ -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 { |
