We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7e41a8 commit 4b549faCopy full SHA for 4b549fa
library/std/src/path.rs
@@ -2087,7 +2087,8 @@ impl Path {
2087
/// assert!(path.starts_with("/etc"));
2088
/// assert!(path.starts_with("/etc/"));
2089
/// assert!(path.starts_with("/etc/passwd"));
2090
- /// assert!(path.starts_with("/etc/passwd/")); // extra slash(es) is okay
+ /// assert!(path.starts_with("/etc/passwd/")); // extra slash is okay
2091
+ /// assert!(path.starts_with("/etc/passwd///")); // multiple extra slashes are okay
2092
///
2093
/// assert!(!path.starts_with("/e"));
2094
/// assert!(!path.starts_with("/etc/passwd.txt"));
0 commit comments