doc: fix Windows test failure
This commit is contained in:
parent
5263d628b1
commit
462829cb13
1 changed files with 2 additions and 2 deletions
|
@ -1623,11 +1623,11 @@ impl Path {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use std::path::Path;
|
/// use std::path::{self, Path};
|
||||||
/// use std::ffi::OsStr;
|
/// use std::ffi::OsStr;
|
||||||
///
|
///
|
||||||
/// let mut it = Path::new("/tmp/foo.txt").iter();
|
/// 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("tmp")));
|
||||||
/// assert_eq!(it.next(), Some(OsStr::new("foo.txt")));
|
/// assert_eq!(it.next(), Some(OsStr::new("foo.txt")));
|
||||||
/// assert_eq!(it.next(), None)
|
/// assert_eq!(it.next(), None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue