auto merge of #12765 : TeXitoi/rust/fix-shootout-reverse-complement, r=alexcrichton
This commit is contained in:
commit
a0f20f09fd
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue