diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-08-09 06:41:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-09 06:41:33 +0900 |
| commit | 3038ecb07b8e549abcc6c7fe1d83faa21fdafb99 (patch) | |
| tree | 1056476a75b3895b41a0479863d48be9f106f7a4 | |
| parent | 6baee9557a52508ff6449d7df975f207c81e5b9a (diff) | |
| parent | 4b15b809eb12f674842855676171f6998bc9ca42 (diff) | |
| download | rust-3038ecb07b8e549abcc6c7fe1d83faa21fdafb99.tar.gz rust-3038ecb07b8e549abcc6c7fe1d83faa21fdafb99.zip | |
Rollup merge of #75289 - pickfire:patch-12, r=jonas-schievink
Remove ambiguity from PathBuf pop example
| -rw-r--r-- | library/std/src/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 29cd209e702..3ce48ce8799 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1232,10 +1232,10 @@ impl PathBuf { /// ``` /// use std::path::{Path, PathBuf}; /// - /// let mut p = PathBuf::from("/test/test.rs"); + /// let mut p = PathBuf::from("/spirited/away.rs"); /// /// p.pop(); - /// assert_eq!(Path::new("/test"), p); + /// assert_eq!(Path::new("/spirited"), p); /// p.pop(); /// assert_eq!(Path::new("/"), p); /// ``` |
