We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Path::as_mut_os_str
1 parent 9c07efe commit c68d2e4Copy full SHA for c68d2e4
library/std/src/path.rs
@@ -2039,12 +2039,12 @@ impl Path {
2039
/// #![feature(path_as_mut_os_str)]
2040
/// use std::path::{Path, PathBuf};
2041
///
2042
- /// let mut path = PathBuf::from("/Foo.TXT").into_boxed_path();
+ /// let mut path = PathBuf::from("Foo.TXT");
2043
2044
- /// assert_ne!(&*path, Path::new("/foo.txt"));
+ /// assert_ne!(path, Path::new("foo.txt"));
2045
2046
/// path.as_mut_os_str().make_ascii_lowercase();
2047
- /// assert_eq!(&*path, Path::new("/foo.txt"));
+ /// assert_eq!(path, Path::new("foo.txt"));
2048
/// ```
2049
#[unstable(feature = "path_as_mut_os_str", issue = "105021")]
2050
#[must_use]
0 commit comments