diff options
Diffstat (limited to 'rosalind')
-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; |