We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d1857 commit f3ad32bCopy full SHA for f3ad32b
library/std/src/path.rs
@@ -2504,6 +2504,7 @@ impl Path {
2504
/// assert_eq!(path.strip_prefix("/test/haha/foo.txt/"), Ok(Path::new("")));
2505
///
2506
/// assert!(path.strip_prefix("test").is_err());
2507
+ /// assert!(path.strip_prefix("/te").is_err());
2508
/// assert!(path.strip_prefix("/haha").is_err());
2509
2510
/// let prefix = PathBuf::from("/test/");
0 commit comments