Skip to content

Commit 3fdb571

Browse files
Apply some suggestions from programmerjake
Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
1 parent c560529 commit 3fdb571

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

posts/2024-04-29-check-cfg.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ The Cargo and Compiler team are delighted to announce that starting with Rust 1.
1111

1212
This can help with verifying that the crate is correctly handling conditional compilation for different target platforms or features. It ensures that the cfg settings are consistent between what is intended and what is used, helping to catch potential bugs or errors early in the development process.
1313

14-
Addressing a common pitfall for new and advanced users.
14+
This addresses a common pitfall for new and advanced users.
1515

16-
This is another step to our commitment to provide user-focused tooling and we are eager and excited to finally see it fixed, more than two years since the original [RFC 3013](https://github.com/rust-lang/rfcs/pull/3013)[^1].
16+
This is another step to our commitment to provide user-focused tooling and we are eager and excited to finally see it fixed, after more than two years since the original [RFC 3013](https://github.com/rust-lang/rfcs/pull/3013)[^1].
1717

1818
[^1]: The stabilized implementation and RFC 3013 diverge significantly, in particular there is only one form for `--check-cfg`: `cfg()` (instead of `values()` and `names()` being incomplete and subtlety incompatible with each other).
1919

@@ -58,7 +58,7 @@ Some crates use custom cfgs that they either expected from the environment (`RUS
5858

5959
[^2]: `cargo::rustc-check-cfg` take action since Rust 1.80, between Rust 1.77 and Rust 1.79 *(included)* it silently did nothing and before that (so Rust 1.76 and below) it warned when used without the unstable Cargo `-Zcheck-cfg`.
6060

61-
The syntax to use is described in the [rustc book](https://doc.rust-lang.org/rustc/index.html) section [checking configuration](TODO), but in a nut shell the basic syntax of `--check-cfg` is:
61+
The syntax to use is described in the [rustc book](https://doc.rust-lang.org/rustc/index.html) section [checking configuration](TODO), but in a nutshell the basic syntax of `--check-cfg` is:
6262

6363
> `cfg(name, values("value1", "value2", ..., "valueN"))`
6464

0 commit comments

Comments
 (0)