diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-08 22:07:06 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-08 22:07:06 -0600 |
commit | 2e59cea2032a4c2c9a29f361fe280b5d6fa01136 (patch) | |
tree | a10fc94b2591512d0be27b5f24929051e6800141 | |
parent | f8ddc5645066a080fa87eabb5ce4a6f77ca7d4b3 (diff) | |
download | rosalind-2e59cea2032a4c2c9a29f361fe280b5d6fa01136.tar.gz rosalind-2e59cea2032a4c2c9a29f361fe280b5d6fa01136.zip |
no reason this couldn't be a view
-rw-r--r-- | rosalind/protein.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rosalind/protein.rs b/rosalind/protein.rs index 7d56093..815b9c0 100644 --- a/rosalind/protein.rs +++ b/rosalind/protein.rs @@ -9,7 +9,7 @@ fn translate(rna: &str) -> ~str { let mut protein = str::with_capacity(codons); for uint::range(0, codons) |i| { - let codon = str::slice(rna, i * 3, i * 3 + 3); + let codon = str::view(rna, i * 3, i * 3 + 3); let amino = translate_single(codon); if (amino == STOP) { break; |