about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2016-02-25 23:21:55 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2016-02-28 09:37:45 +0200
commita34fd5c3fea8e7301e33531ee3c27b3299eaeab6 (patch)
treef9885ea15eb61b5290141f0369b268d25e84287c /src/libstd
parent1aa6ac38b2ca725a3b0a0379a554e953ca783298 (diff)
downloadrust-a34fd5c3fea8e7301e33531ee3c27b3299eaeab6.tar.gz
rust-a34fd5c3fea8e7301e33531ee3c27b3299eaeab6.zip
doc: "ref" not needed in the example
Also, `path` seems better than `p`
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/env.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index 3a543a947b5..749e58c1196 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -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!"),
 /// }
 /// ```