From a34fd5c3fea8e7301e33531ee3c27b3299eaeab6 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 25 Feb 2016 23:21:55 +0200 Subject: [PATCH] doc: "ref" not needed in the example Also, `path` seems better than `p` --- src/libstd/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/env.rs b/src/libstd/env.rs index 3a543a947b53a..749e58c11962b 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!"), /// } /// ```