Skip to content

Commit 462829c

Browse files
committed
doc: fix Windows test failure
1 parent 5263d62 commit 462829c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1623,11 +1623,11 @@ impl Path {
16231623
/// # Examples
16241624
///
16251625
/// ```
1626-
/// use std::path::Path;
1626+
/// use std::path::{self, Path};
16271627
/// use std::ffi::OsStr;
16281628
///
16291629
/// let mut it = Path::new("/tmp/foo.txt").iter();
1630-
/// assert_eq!(it.next(), Some(OsStr::new("/")));
1630+
/// assert_eq!(it.next(), Some(OsStr::new(&path::MAIN_SEPARATOR.to_string())));
16311631
/// assert_eq!(it.next(), Some(OsStr::new("tmp")));
16321632
/// assert_eq!(it.next(), Some(OsStr::new("foo.txt")));
16331633
/// assert_eq!(it.next(), None)

0 commit comments

Comments
 (0)