diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-01 14:31:03 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-01 15:53:13 -0700 |
| commit | 4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (patch) | |
| tree | e4e85184b26851431e419b8867c560863c204de8 /src/libstd/path.rs | |
| parent | 4af849bc12e8a2ec592074b1470464efa59f06bf (diff) | |
| download | rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.tar.gz rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.zip | |
Migrate users of 'loop' to 'continue'
Closes #9467
Diffstat (limited to 'src/libstd/path.rs')
| -rw-r--r-- | src/libstd/path.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 0d4bcb4ec47..ea157c6eea6 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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()); } |
