diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-23 21:42:11 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-23 23:13:57 +0200 |
| commit | 462829cb13c75e43378ab4adab57ba17902cc293 (patch) | |
| tree | 6f02443ecb5b45c9827e30f2d771870930b790ba /src/libstd | |
| parent | 5263d628b14d5511f7121f85b1d5ead3bd7b9813 (diff) | |
| download | rust-462829cb13c75e43378ab4adab57ba17902cc293.tar.gz rust-462829cb13c75e43378ab4adab57ba17902cc293.zip | |
doc: fix Windows test failure
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 8d846a7fe4d..2f19644be85 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1623,11 +1623,11 @@ impl Path { /// # Examples /// /// ``` - /// use std::path::Path; + /// use std::path::{self, Path}; /// use std::ffi::OsStr; /// /// let mut it = Path::new("/tmp/foo.txt").iter(); - /// assert_eq!(it.next(), Some(OsStr::new("/"))); + /// assert_eq!(it.next(), Some(OsStr::new(&path::MAIN_SEPARATOR.to_string()))); /// assert_eq!(it.next(), Some(OsStr::new("tmp"))); /// assert_eq!(it.next(), Some(OsStr::new("foo.txt"))); /// assert_eq!(it.next(), None) |
