1
Fork 0

auto merge of #12765 : TeXitoi/rust/fix-shootout-reverse-complement, r=alexcrichton

This commit is contained in:
bors 2014-03-11 01:51:59 -07:00
commit a0f20f09fd

View file

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// ignore-android doesn't terminate? // ignore-android doesn't terminate?
// ignore-pretty
use std::iter::range_step; use std::iter::range_step;
use std::io::{stdin, stdout, File}; use std::io::{stdin, stdout, File};
@ -73,10 +74,11 @@ fn main() {
*front = complements[*back]; *front = complements[*back];
*back = tmp; *back = tmp;
} }
(Some(last), None) => *last = complements[*last], // last element
_ => break // vector exhausted. _ => break // vector exhausted.
} }
} }
} }
stdout().write(data); stdout().write(data).unwrap();
} }