Auto merge of #31897 - tshepang:ref-not-needed, r=steveklabnik
Also, `path` seems better than `p`
This commit is contained in:
commit
d5558825b4
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ impl Error for JoinPathsError {
|
|||
/// use std::env;
|
||||
///
|
||||
/// match env::home_dir() {
|
||||
/// Some(ref p) => println!("{}", p.display()),
|
||||
/// Some(path) => println!("{}", path.display()),
|
||||
/// None => println!("Impossible to get your home dir!"),
|
||||
/// }
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue