Skip to content

Commit 83bcf60

Browse files
CromFrgitbot
authored and
gitbot
committed
Added a doc test for std::path::strip_prefix
1 parent 78fc550 commit 83bcf60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/path.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,7 @@ impl Path {
25042504
/// assert_eq!(path.strip_prefix("/test/haha/foo.txt/"), Ok(Path::new("")));
25052505
///
25062506
/// assert!(path.strip_prefix("test").is_err());
2507+
/// assert!(path.strip_prefix("/te").is_err());
25072508
/// assert!(path.strip_prefix("/haha").is_err());
25082509
///
25092510
/// let prefix = PathBuf::from("/test/");

0 commit comments

Comments
 (0)