Skip to content

Commit d555882

Browse files
committed
Auto merge of #31897 - tshepang:ref-not-needed, r=steveklabnik
Also, `path` seems better than `p`
2 parents 095f5e7 + a34fd5c commit d555882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ impl Error for JoinPathsError {
441441
/// use std::env;
442442
///
443443
/// match env::home_dir() {
444-
/// Some(ref p) => println!("{}", p.display()),
444+
/// Some(path) => println!("{}", path.display()),
445445
/// None => println!("Impossible to get your home dir!"),
446446
/// }
447447
/// ```

0 commit comments

Comments
 (0)