diff --git a/benches/benchsuite/benches/resolve.rs b/benches/benchsuite/benches/resolve.rs index 266c9c93a..84455232e 100644 --- a/benches/benchsuite/benches/resolve.rs +++ b/benches/benchsuite/benches/resolve.rs @@ -236,7 +236,7 @@ fn make_config(ws_root: &Path) -> Config { config } -/// Benchmark of the full `resovle_ws_with_opts` which runs the resolver +/// Benchmark of the full `resolve_ws_with_opts` which runs the resolver /// twice, the feature resolver, and more. This is a major component of a /// regular cargo build. fn resolve_ws(c: &mut Criterion) { diff --git a/src/cargo/core/source/source_id.rs b/src/cargo/core/source/source_id.rs index 2f95e10e8..0bcb13db3 100644 --- a/src/cargo/core/source/source_id.rs +++ b/src/cargo/core/source/source_id.rs @@ -201,7 +201,7 @@ impl SourceId { }) } - /// Gets the `SourceId` associated with given name of the remote regsitry. + /// Gets the `SourceId` associated with given name of the remote registry. pub fn alt_registry(config: &Config, key: &str) -> CargoResult { let url = config.get_registry_index(key)?; Ok(SourceId::wrap(SourceIdInner { @@ -574,7 +574,7 @@ impl PartialOrd for SourceKind { // (1.53) #9397 was created to fix the regression introduced by #9133 relative // to the current stable (1.51). // -// That's all a long winded way of saying "it's wierd that git deps hash first +// That's all a long winded way of saying "it's weird that git deps hash first // and are sorted last, but it's the way it is right now". The author of this // comment chose to handwrite the `Ord` implementation instead of the `Hash` // implementation, but it's only required that at most one of them is diff --git a/src/cargo/ops/tree/mod.rs b/src/cargo/ops/tree/mod.rs index 4959e04e5..134670cf9 100644 --- a/src/cargo/ops/tree/mod.rs +++ b/src/cargo/ops/tree/mod.rs @@ -47,7 +47,7 @@ pub struct TreeOptions { pub graph_features: bool, /// Maximum display depth of the dependency tree. pub max_display_depth: u32, - /// Exculdes proc-macro dependencies. + /// Excludes proc-macro dependencies. pub no_proc_macro: bool, } diff --git a/src/cargo/util/toml/targets.rs b/src/cargo/util/toml/targets.rs index c82e958a2..13aec29a4 100644 --- a/src/cargo/util/toml/targets.rs +++ b/src/cargo/util/toml/targets.rs @@ -821,7 +821,7 @@ fn configure(toml: &TomlTarget, target: &mut Target) -> CargoResult<()> { } /// Build an error message for a target path that cannot be determined either -/// by auto-discovery or specifiying. +/// by auto-discovery or specifying. /// /// This function tries to detect commonly wrong paths for targets: /// diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index 327d56408..1c1db0ba7 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -71,7 +71,7 @@ Each new feature described below should explain how to use it. * Output behavior * [out-dir](#out-dir) — Adds a directory where artifacts are copied to. * [terminal-width](#terminal-width) — Tells rustc the width of the terminal so that long diagnostic messages can be truncated to be more readable. - * [Different binary name](#different-binary-name) — Assign a name to the built binary that is seperate from the crate name. + * [Different binary name](#different-binary-name) — Assign a name to the built binary that is separate from the crate name. * Compile behavior * [mtime-on-use](#mtime-on-use) — Updates the last-modified timestamp on every dependency every time it is used, to provide a mechanism to delete unused artifacts. * [doctest-xcompile](#doctest-xcompile) — Supports running doctests with the `--target` flag.