]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/path.rs
Rollup merge of #97336 - tshepang:typo, r=cjgillot
[rust.git] / library / std / src / path.rs
index c03d197e0194c9c4f2a6ea9ddc89d873ce81a290..36d6469c02d31e1f46e4c3e1686879e357ffa468 100644 (file)
@@ -725,7 +725,7 @@ fn include_cur_dir(&self) -> bool {
         if self.has_root() {
             return false;
         }
-        let mut iter = self.path[self.prefix_len()..].iter();
+        let mut iter = self.path[self.prefix_remaining()..].iter();
         match (iter.next(), iter.next()) {
             (Some(&b'.'), None) => true,
             (Some(&b'.'), Some(&b)) => self.is_sep_byte(b),