doc: "ref" not needed in the example

Also, `path` seems better than `p`
This commit is contained in:
Tshepang Lekhonkhobe 2016-02-25 23:21:55 +02:00
parent 1aa6ac38b2
commit a34fd5c3fe

View file

@ -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!"),
/// }
/// ```