1
Fork 0

Migrate users of 'loop' to 'continue'

Closes #9467
This commit is contained in:
Alex Crichton 2013-10-01 14:31:03 -07:00
parent 4af849bc12
commit 4f67dcb24a
49 changed files with 78 additions and 78 deletions

View file

@ -992,11 +992,11 @@ impl GenericPath for WindowsPath {
pub fn normalize(components: &[~str]) -> ~[~str] {
let mut cs = ~[];
for c in components.iter() {
if *c == ~"." && components.len() > 1 { loop; }
if *c == ~"" { loop; }
if *c == ~"." && components.len() > 1 { continue; }
if *c == ~"" { continue; }
if *c == ~".." && cs.len() != 0 {
cs.pop();
loop;
continue;
}
cs.push((*c).clone());
}