Fix a typo in an env var name

Not actually used yet in rust-lang/rust, but may as well try to get it
right on the first try.
This commit is contained in:
Alex Crichton 2019-07-18 07:20:54 -07:00
parent 49e4af0394
commit 6f8cd0c5c1
1 changed files with 1 additions and 1 deletions

View File

@ -1650,7 +1650,7 @@ pub fn rustc_host() -> String {
}
pub fn is_nightly() -> bool {
env::var("CARGO_TEST_DIABLE_NIGHTLY").is_err()
env::var("CARGO_TEST_DISABLE_NIGHTLY").is_err()
&& RUSTC
.with(|r| r.verbose_version.contains("-nightly") || r.verbose_version.contains("-dev"))
}