diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-04-26 21:06:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-26 21:06:49 +0200 |
| commit | 8b33dfa8ad03c18169e53fefd00f27697afc4f35 (patch) | |
| tree | 4a8caa243d3e88ab1b576debf9bca55f47299028 | |
| parent | 6d277c76945963133b7c18f8d649d8b66f615a6a (diff) | |
| parent | 0d9a1c6762e28261b9aed18f37151483d0fbbc6b (diff) | |
| download | rust-8b33dfa8ad03c18169e53fefd00f27697afc4f35.tar.gz rust-8b33dfa8ad03c18169e53fefd00f27697afc4f35.zip | |
Rollup merge of #84574 - hi-rustin:rustin-patch-typo, r=jyn514
rustdoc: Fix typos in maybe_inline_local fn Introduced by https://github.com/rust-lang/rust/pull/79061. r? `@jyn514`
| -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 { |
