Skip to content

Commit 9313266

Browse files
author
Jon Gjengset
committed
RUSTC_VERSION != CARGO_VERSION
1 parent d0c751b commit 9313266

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
@@ -357,7 +357,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
357357
* `CARGO_PKG_<var>` - The package information variables, with the same names and values as are [provided during crate building][variables set for crates].
358358
* `RUSTC_VERSION` - The version of rustc used by the cargo that invokes
359359
the build script. Its constituent parts are also
360-
available as `CARGO_VERSION_MAJOR`, `_MINOR`, and
360+
available as `RUSTC_VERSION_MAJOR`, `_MINOR`, and
361361
`_PATCH`.
362362

363363
[unix-like platforms]: ../../reference/conditional-compilation.html#unix-and-windows

0 commit comments

Comments
 (0)