diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-02-25 23:21:55 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-02-28 09:37:45 +0200 |
| commit | a34fd5c3fea8e7301e33531ee3c27b3299eaeab6 (patch) | |
| tree | f9885ea15eb61b5290141f0369b268d25e84287c /src/libstd | |
| parent | 1aa6ac38b2ca725a3b0a0379a554e953ca783298 (diff) | |
| download | rust-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.rs | 2 |
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!"), /// } /// ``` |
