Skip to content

Commit aca563a

Browse files
authored
chore: fix some typos (#15329)
<!-- Thanks for submitting a pull request 🎉! Here are some tips for you: * If this is your first contribution, read "Cargo Contribution Guide" first: https://doc.crates.io/contrib/ * Run `cargo fmt --all` to format your code changes. * Small commits and pull requests are always preferable and easy to review. * If your idea is large and needs feedback from the community, read how: https://doc.crates.io/contrib/process/#working-on-large-features * Cargo takes care of compatibility. Read our design principles: https://doc.crates.io/contrib/design.html * When changing help text of cargo commands, follow the steps to generate docs: https://github.com/rust-lang/cargo/tree/master/src/doc#building-the-man-pages * If your PR is not finished, set it as "draft" PR or add "WIP" in its title. * It's ok to use the CI resources to test your PR, but please don't abuse them. ### What does this PR try to resolve? Explain the motivation behind this change. A clear overview along with an in-depth explanation are helpful. You can use `Fixes #<issue number>` to associate this PR to an existing issue. ### How should we test and review this PR? Demonstrate how you test this change and guide reviewers through your PR. With a smooth review process, a pull request usually gets reviewed quicker. If you don't know how to write and run your tests, please read the guide: https://doc.crates.io/contrib/tests ### Additional information Other information you want to mention in this PR, such as prior arts, future extensions, an unresolved problem, or a TODO list. --> fix some typos
2 parents 662213b + 6c7c360 commit aca563a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/resolver-tests/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn resolve_with_global_context_raw(
173173
// we found a case that causes a panic and did not use all of the input.
174174
// lets print the part of the input that was used for minimization.
175175
eprintln!(
176-
"Part used befor drop: {:?}",
176+
"Part used before drop: {:?}",
177177
PrettyPrintRegistry(
178178
self.list
179179
.iter()

src/cargo/core/compiler/future_incompat.rs

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

src/cargo/core/manifest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ macro_rules! metadata_envs {
197197
}
198198
}
199199

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

0 commit comments

Comments
 (0)