Skip to content

Commit adeb0ae

Browse files
authored
move comment right onto the line in question
1 parent 898fdcc commit adeb0ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/run-pass/env-home-dir.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use std::env::*;
1717
use std::path::PathBuf;
1818

19-
/// When HOME is not set, some platforms return `None`, but others return `Some` with a default.
20-
/// Just check that it is not "/home/MountainView".
21-
2219
#[cfg(unix)]
2320
fn main() {
2421
let oldhome = var("HOME");
@@ -30,6 +27,9 @@ fn main() {
3027
if cfg!(target_os = "android") {
3128
assert!(home_dir().is_none());
3229
} else {
30+
// When HOME is not set, some platforms return `None`,
31+
// but others return `Some` with a default.
32+
// Just check that it is not "/home/MountainView".
3333
assert_ne!(home_dir(), Some(PathBuf::from("/home/MountainView")));
3434
}
3535
}

0 commit comments

Comments
 (0)