]> git.proxmox.com Git - cargo.git/commitdiff
fix some typos
authorcuishuang <imcusg@gmail.com>
Fri, 4 Mar 2022 05:41:18 +0000 (13:41 +0800)
committercuishuang <imcusg@gmail.com>
Fri, 4 Mar 2022 05:41:18 +0000 (13:41 +0800)
Signed-off-by: cuishuang <imcusg@gmail.com>
benches/benchsuite/benches/resolve.rs
src/cargo/core/source/source_id.rs
src/cargo/ops/tree/mod.rs
src/cargo/util/toml/targets.rs
src/doc/src/reference/unstable.md

index 266c9c93a9c1d90acfc9cde155ead59c0e5698d4..84455232eb989b3a2582c2803f81ec6b4303298b 100644 (file)
@@ -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) {
index 2f95e10e839ce89371c62917113f8aededdf812e..0bcb13db37fb0ab54568c8714abf39ddcfd683c0 100644 (file)
@@ -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<SourceId> {
         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
index 4959e04e595ab2818b1db61b12f1d44aec5f7e01..134670cf988fd0e089de5bdfe4b026cf76ac5f65 100644 (file)
@@ -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,
 }
 
index c82e958a23712d85813260ae4ff1736a73210edc..13aec29a4e87f519e48d663fc1331e2c68053cad 100644 (file)
@@ -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:
 ///
index 327d5640872355b955115631b5f92a05e817345f..1c1db0ba7131cb068d540a7e587d3fffc7c1c283 100644 (file)
@@ -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.