Browse Source

Replace range() function with range notation

Simon Sapin 11 years ago
parent
commit
b103473ad8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/host.rs

+ 1 - 1
src/host.rs

@@ -260,7 +260,7 @@ fn longest_zero_sequence(pieces: &[u16; 8]) -> (isize, isize) {
             }
         };
     );
-    for i in range(0, 8) {
+    for i in 0..8 {
         if pieces[i as usize] == 0 {
             if start < 0 {
                 start = i;