Skip to content

Commit

Permalink
Realistic Path::as_mut_os_str doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Dec 16, 2022
1 parent 9c07efe commit c68d2e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2039,12 +2039,12 @@ impl Path {
/// #![feature(path_as_mut_os_str)]
/// use std::path::{Path, PathBuf};
///
/// let mut path = PathBuf::from("/Foo.TXT").into_boxed_path();
/// let mut path = PathBuf::from("Foo.TXT");
///
/// assert_ne!(&*path, Path::new("/foo.txt"));
/// assert_ne!(path, Path::new("foo.txt"));
///
/// path.as_mut_os_str().make_ascii_lowercase();
/// assert_eq!(&*path, Path::new("/foo.txt"));
/// assert_eq!(path, Path::new("foo.txt"));
/// ```
#[unstable(feature = "path_as_mut_os_str", issue = "105021")]
#[must_use]
Expand Down

0 comments on commit c68d2e4

Please sign in to comment.