mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
9cffcfc91e
commit
8f26842bf2
@ -236,7 +236,7 @@ fn make_config(ws_root: &Path) -> Config {
|
|||||||
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
|
/// twice, the feature resolver, and more. This is a major component of a
|
||||||
/// regular cargo build.
|
/// regular cargo build.
|
||||||
fn resolve_ws(c: &mut Criterion) {
|
fn resolve_ws(c: &mut Criterion) {
|
||||||
|
@ -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> {
|
pub fn alt_registry(config: &Config, key: &str) -> CargoResult<SourceId> {
|
||||||
let url = config.get_registry_index(key)?;
|
let url = config.get_registry_index(key)?;
|
||||||
Ok(SourceId::wrap(SourceIdInner {
|
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
|
// (1.53) #9397 was created to fix the regression introduced by #9133 relative
|
||||||
// to the current stable (1.51).
|
// 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
|
// 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`
|
// comment chose to handwrite the `Ord` implementation instead of the `Hash`
|
||||||
// implementation, but it's only required that at most one of them is
|
// implementation, but it's only required that at most one of them is
|
||||||
|
@ -47,7 +47,7 @@ pub struct TreeOptions {
|
|||||||
pub graph_features: bool,
|
pub graph_features: bool,
|
||||||
/// Maximum display depth of the dependency tree.
|
/// Maximum display depth of the dependency tree.
|
||||||
pub max_display_depth: u32,
|
pub max_display_depth: u32,
|
||||||
/// Exculdes proc-macro dependencies.
|
/// Excludes proc-macro dependencies.
|
||||||
pub no_proc_macro: bool,
|
pub no_proc_macro: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
/// 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:
|
/// This function tries to detect commonly wrong paths for targets:
|
||||||
///
|
///
|
||||||
|
@ -71,7 +71,7 @@ Each new feature described below should explain how to use it.
|
|||||||
* Output behavior
|
* Output behavior
|
||||||
* [out-dir](#out-dir) — Adds a directory where artifacts are copied to.
|
* [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.
|
* [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
|
* 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.
|
* [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.
|
* [doctest-xcompile](#doctest-xcompile) — Supports running doctests with the `--target` flag.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user