about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorUrgau <lolo.branstett@numericable.fr>2021-10-15 12:21:25 +0200
committerGitHub <noreply@github.com>2021-10-15 12:21:25 +0200
commit55fad2990317ce6655cb32beefbcff8f2300848d (patch)
treeafb0e447046e9307daf458377f95e9154c4b515a /src
parent7d6cfb7754988b95f05a7dec8a26bc41c47ca5e8 (diff)
downloadrust-55fad2990317ce6655cb32beefbcff8f2300848d.tar.gz
rust-55fad2990317ce6655cb32beefbcff8f2300848d.zip
Apply documentation suggestions from code review
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/visit_ast.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs
index f60d4e1f295..ce967038c50 100644
--- a/src/librustdoc/visit_ast.rs
+++ b/src/librustdoc/visit_ast.rs
@@ -88,9 +88,9 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
         // we add the rexport as an item here, and then skip over the original
         // definition in `visit_item()` below.
         //
-        // We also skip `#[macro_export] macro_rules!` that have alredy been inserted,
-        // this can append if within the same module a `#[macro_export] macro_rules!`
-        // is declared but also a reexport of itself producing two export of the same
+        // We also skip `#[macro_export] macro_rules!` that have already been inserted,
+        // it can happen if within the same module a `#[macro_export] macro_rules!`
+        // is declared but also a reexport of itself producing two exports of the same
         // macro in the same module.
         let mut inserted = FxHashSet::default();
         for export in self.cx.tcx.module_exports(CRATE_DEF_ID).unwrap_or(&[]) {