doc: "ref" not needed in the example
Also, `path` seems better than `p`
This commit is contained in:
parent
1aa6ac38b2
commit
a34fd5c3fe
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