Merge pull request #47 from jbcrail/fix-deprecated-range

Remove range function.
This commit is contained in:
Alex Crichton 2015-01-12 11:02:46 -06:00
commit bde434903d
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ fn pidigits(n: isize) {
let mut k = 0;
let mut context = Context::new();
for i in range(1, n + 1) {
for i in (1..(n+1)) {
let mut d;
loop {
k += 1;
@ -112,7 +112,7 @@ fn pidigits(n: isize) {
let m = n % 10;
if m != 0 {
for _ in range(m, 10) { print!(" "); }
for _ in (m..10) { print!(" "); }
print!("\t:{}\n", n);
}
}