about summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-01 14:31:03 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-01 15:53:13 -0700
commit4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (patch)
treee4e85184b26851431e419b8867c560863c204de8 /src/libstd/num
parent4af849bc12e8a2ec592074b1470464efa59f06bf (diff)
downloadrust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.tar.gz
rust-4f67dcb24adb1e23f04e624fcbaf2328b82491b6.zip
Migrate users of 'loop' to 'continue'
Closes #9467
Diffstat (limited to 'src/libstd/num')
-rw-r--r--src/libstd/num/strconv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs
index 19e6a2dd0ef..32a6d3cd4a7 100644
--- a/src/libstd/num/strconv.rs
+++ b/src/libstd/num/strconv.rs
@@ -355,7 +355,7 @@ pub fn float_to_str_bytes_common<T:NumCast+Zero+One+Eq+Ord+Float+Round+
                     }
 
                     // Skip the '.'
-                    if buf[i] == '.' as u8 { i -= 1; loop; }
+                    if buf[i] == '.' as u8 { i -= 1; continue; }
 
                     // Either increment the digit,
                     // or set to 0 if max and carry the 1.