Skip to content

Commit 4b96b30

Browse files
authored
chore: fix some typos in comment (#15485)
<!-- 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? fix some typos in comment ### 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. -->
2 parents 8b5c351 + 0e282f7 commit 4b96b30

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/cargo/core/compiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ fn check_cfg_args(unit: &Unit) -> Vec<OsString> {
14881488
arg_feature.push("))");
14891489

14901490
// In addition to the package features, we also include the `test` cfg (since
1491-
// compiler-team#785, as to be able to someday apply yt conditionaly), as well
1491+
// compiler-team#785, as to be able to someday apply yt conditionally), as well
14921492
// the `docsrs` cfg from the docs.rs service.
14931493
//
14941494
// We include `docsrs` here (in Cargo) instead of rustc, since there is a much closer

src/cargo/util/toml_mut/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ impl LocalManifest {
452452
Ok(())
453453
}
454454

455-
/// Allow mutating depedencies, wherever they live.
455+
/// Allow mutating dependencies, wherever they live.
456456
/// Copied from cargo-edit.
457457
pub fn get_dependency_tables_mut(
458458
&mut self,

src/doc/src/reference/unstable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ The path to where internal files used as part of the build are placed.
264264

265265
This option supports path templating.
266266

267-
Avaiable template variables:
267+
Available template variables:
268268
* `{workspace-root}` resolves to root of the current workspace.
269269
* `{cargo-cache-home}` resolves to `CARGO_HOME`
270270
* `{workspace-path-hash}` resolves to a hash of the manifest path

tests/testsuite/build_script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5420,7 +5420,7 @@ fn rerun_if_published_directory() {
54205420

54215421
p.cargo("check").run();
54225422

5423-
// Delete regitry src to make directories being recreated with the latest timestamp.
5423+
// Delete registry src to make directories being recreated with the latest timestamp.
54245424
cargo_home().join("registry/src").rm_rf();
54255425

54265426
p.cargo("check --verbose")

0 commit comments

Comments
 (0)