about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuca Scherzer <83914554+lucascherzer@users.noreply.github.com>2023-06-05 16:01:09 +0200
committerLuca Scherzer <83914554+lucascherzer@users.noreply.github.com>2023-06-05 16:01:09 +0200
commite30c52d428a2e4347244fd382f956ab04c100d6c (patch)
treeb9fcf210618140185fbb03356f39f46b2e680d52
parent7452822843cf461b56742f0fc648af35889a3070 (diff)
downloadrust-e30c52d428a2e4347244fd382f956ab04c100d6c.tar.gz
rust-e30c52d428a2e4347244fd382f956ab04c100d6c.zip
fix spelling error
-rw-r--r--compiler/rustc_driver/src/lib.rs2
-rw-r--r--src/librustdoc/visit_ast.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index 4eabba575f4..0cd0b51b6ad 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -1,4 +1,4 @@
-// This crate is intentionally empty and a rexport of `rustc_driver_impl` to allow the code in
+// This crate is intentionally empty and a re-export of `rustc_driver_impl` to allow the code in
 // `rustc_driver_impl` to be compiled in parallel with other crates.
 
 pub use rustc_driver_impl::*;
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs
index 1689445b9ef..db353552893 100644
--- a/src/librustdoc/visit_ast.rs
+++ b/src/librustdoc/visit_ast.rs
@@ -147,9 +147,9 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
 
         // `#[macro_export] macro_rules!` items are reexported at the top level of the
         // crate, regardless of where they're defined. We want to document the
-        // top level rexport of the macro, not its original definition, since
-        // the rexport defines the path that a user will actually see. Accordingly,
-        // we add the rexport as an item here, and then skip over the original
+        // top level re-export of the macro, not its original definition, since
+        // the re-export defines the path that a user will actually see. Accordingly,
+        // we add the re-export as an item here, and then skip over the original
         // definition in `visit_item()` below.
         //
         // We also skip `#[macro_export] macro_rules!` that have already been inserted,