Skip to content

Commit

Permalink
move comment right onto the line in question
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored Jan 29, 2018
1 parent 898fdcc commit adeb0ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/run-pass/env-home-dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
use std::env::*;
use std::path::PathBuf;

/// When HOME is not set, some platforms return `None`, but others return `Some` with a default.
/// Just check that it is not "/home/MountainView".
#[cfg(unix)]
fn main() {
let oldhome = var("HOME");
Expand All @@ -30,6 +27,9 @@ fn main() {
if cfg!(target_os = "android") {
assert!(home_dir().is_none());
} else {
// When HOME is not set, some platforms return `None`,
// but others return `Some` with a default.
// Just check that it is not "/home/MountainView".
assert_ne!(home_dir(), Some(PathBuf::from("/home/MountainView")));
}
}
Expand Down

0 comments on commit adeb0ae

Please sign in to comment.