diff options
| author | Eric Huss <eric@huss.org> | 2024-06-05 13:34:21 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2024-06-05 13:35:38 -0700 |
| commit | 964e88555ba6a9fc41d3a19e114b77ed5064bad9 (patch) | |
| tree | 2a1b37ee7b5e8252f1cac2cc5ed87400eba0f823 | |
| parent | 88e81bca9f83157afec49c4cddcdf25497cfe507 (diff) | |
| download | rust-964e88555ba6a9fc41d3a19e114b77ed5064bad9.tar.gz rust-964e88555ba6a9fc41d3a19e114b77ed5064bad9.zip | |
Fix some wording in cargo-specifics.md
| -rw-r--r-- | src/doc/rustc/src/check-cfg/cargo-specifics.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/rustc/src/check-cfg/cargo-specifics.md b/src/doc/rustc/src/check-cfg/cargo-specifics.md index e3b8b537c42..bd4bebbc874 100644 --- a/src/doc/rustc/src/check-cfg/cargo-specifics.md +++ b/src/doc/rustc/src/check-cfg/cargo-specifics.md @@ -3,7 +3,7 @@ <!-- This page is currently (as of May 2024) the canonical place for describing the interaction between Cargo and --check-cfg. It is placed in the rustc book rather than the Cargo book -since check-cfg is primarely a Rust/rustc feature and is therefor consider by T-cargo to +since check-cfg is primarily a Rust/rustc feature and is therefore considered by T-cargo to be an implementation detail, at least --check-cfg and the unexpected_cfgs are owned by rustc, not Cargo. --> @@ -17,7 +17,7 @@ to the [Cargo book](../../cargo/index.html). *See the [`[features]` section in the Cargo book][cargo-features] for more details.* -With the `[features]` table Cargo provides a mechanism to express conditional compilation and +With the `[features]` table, Cargo provides a mechanism to express conditional compilation and optional dependencies. Cargo *automatically* declares corresponding cfgs for every feature as expected. @@ -32,12 +32,12 @@ my_feature = [] ## `check-cfg` in `[lints.rust]` table -<!-- Note that T-Cargo considers `[lints.rust.unexpected_cfgs.check-cfg]` to be an -implementation detail and is therefor not documented in Cargo, we therefor do that ourself --> +<!-- Note that T-Cargo considers `lints.rust.unexpected_cfgs.check-cfg` to be an +implementation detail and is therefore documented here and not in Cargo. --> *See the [`[lints]` section in the Cargo book][cargo-lints-table] for more details.* -When using a statically known custom config (ie. not dependant on a build-script), Cargo provides +When using a statically known custom config (i.e., not dependent on a build-script), Cargo provides the custom lint config `check-cfg` under `[lints.rust.unexpected_cfgs]`. It can be used to set custom static [`--check-cfg`](../check-cfg.md) args, it is mainly useful when |
