From 819091ac45977d1f3c331c0aed7416b2a1d5a910 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Sun, 27 Mar 2022 01:03:46 -0400 Subject: [PATCH 1/2] Fix wrong info in "Environment variables" docs `target_family` can be more than just Unix or Windows --- src/doc/src/reference/environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/environment-variables.md b/src/doc/src/reference/environment-variables.md index bb200136ac1..f9998eab992 100644 --- a/src/doc/src/reference/environment-variables.md +++ b/src/doc/src/reference/environment-variables.md @@ -310,7 +310,7 @@ let out_dir = env::var("OUT_DIR").unwrap(); those defined in `RUSTFLAGS`). Some examples of what these variables are: * `CARGO_CFG_UNIX` — Set on [unix-like platforms]. * `CARGO_CFG_WINDOWS` — Set on [windows-like platforms]. - * `CARGO_CFG_TARGET_FAMILY=unix` — The [target family], either `unix` or `windows`. + * `CARGO_CFG_TARGET_FAMILY=unix` — The [target family], for example `unix` or `windows`. * `CARGO_CFG_TARGET_OS=macos` — The [target operating system]. * `CARGO_CFG_TARGET_ARCH=x86_64` — The CPU [target architecture]. * `CARGO_CFG_TARGET_VENDOR=apple` — The [target vendor]. From a49ec27b8f58c340de703cf5b01a540b45811681 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Sun, 27 Mar 2022 16:48:40 -0400 Subject: [PATCH 2/2] Update src/doc/src/reference/environment-variables.md Co-authored-by: Eric Huss --- src/doc/src/reference/environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/environment-variables.md b/src/doc/src/reference/environment-variables.md index f9998eab992..34acf8190bb 100644 --- a/src/doc/src/reference/environment-variables.md +++ b/src/doc/src/reference/environment-variables.md @@ -310,7 +310,7 @@ let out_dir = env::var("OUT_DIR").unwrap(); those defined in `RUSTFLAGS`). Some examples of what these variables are: * `CARGO_CFG_UNIX` — Set on [unix-like platforms]. * `CARGO_CFG_WINDOWS` — Set on [windows-like platforms]. - * `CARGO_CFG_TARGET_FAMILY=unix` — The [target family], for example `unix` or `windows`. + * `CARGO_CFG_TARGET_FAMILY=unix` — The [target family]. * `CARGO_CFG_TARGET_OS=macos` — The [target operating system]. * `CARGO_CFG_TARGET_ARCH=x86_64` — The CPU [target architecture]. * `CARGO_CFG_TARGET_VENDOR=apple` — The [target vendor].