chore: fix some typos

Signed-off-by: pudongair <744355276@qq.com>
This commit is contained in:
pudongair 2025-03-19 21:05:18 +08:00
parent 662213b095
commit 6c7c360dec
3 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ pub fn resolve_with_global_context_raw(
// we found a case that causes a panic and did not use all of the input.
// lets print the part of the input that was used for minimization.
eprintln!(
"Part used befor drop: {:?}",
"Part used before drop: {:?}",
PrettyPrintRegistry(
self.list
.iter()

View File

@ -8,7 +8,7 @@
//! a [`FutureIncompatReport`], Cargo gathers and forwards it as a
//! `Message::FutureIncompatReport` to the main thread.
//!
//! To have the correct layout of strucutures for deserializing a report
//! To have the correct layout of structures for deserializing a report
//! emitted by the compiler, most of structure definitions, for example
//! [`FutureIncompatReport`], are copied either partially or entirely from
//! [compiler/rustc_errors/src/json.rs][2] in rust-lang/rust repository.

View File

@ -197,7 +197,7 @@ macro_rules! metadata_envs {
}
}
// Metadata enviromental variables that are emitted to rustc. Usable by `env!()`
// Metadata environmental variables that are emitted to rustc. Usable by `env!()`
// If these change we need to trigger a rebuild.
// NOTE: The env var name will be prefixed with `CARGO_PKG_`
metadata_envs! {