Skip to content

Commit 7a1d806

Browse files
committed
Auto merge of #10513 - Jules-Bertholet:patch-1, r=ehuss
Fix wrong info in "Environment variables" docs `target_family` can be more than just Unix or Windows, build scripts need to know this and handle it properly. ### What does this PR try to resolve? Documentation was wrong/misleading
2 parents 3c6a6e4 + a49ec27 commit 7a1d806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/src/reference/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
310310
those defined in `RUSTFLAGS`). Some examples of what these variables are:
311311
* `CARGO_CFG_UNIX` — Set on [unix-like platforms].
312312
* `CARGO_CFG_WINDOWS` — Set on [windows-like platforms].
313-
* `CARGO_CFG_TARGET_FAMILY=unix` — The [target family], either `unix` or `windows`.
313+
* `CARGO_CFG_TARGET_FAMILY=unix` — The [target family].
314314
* `CARGO_CFG_TARGET_OS=macos` — The [target operating system].
315315
* `CARGO_CFG_TARGET_ARCH=x86_64` — The CPU [target architecture].
316316
* `CARGO_CFG_TARGET_VENDOR=apple` — The [target vendor].

0 commit comments

Comments
 (0)