diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-13 22:50:02 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-13 22:50:02 -0500 |
commit | a88eef55cd2552cb49d47c274ed080feac649112 (patch) | |
tree | 646d388d30745543ec79eb2a365b0f74fe129226 /DNA.rs | |
parent | 00e7efaee4bb250758563289ef509101b43715f1 (diff) | |
download | rosalind-a88eef55cd2552cb49d47c274ed080feac649112.tar.gz rosalind-a88eef55cd2552cb49d47c274ed080feac649112.zip |
Diffstat (limited to 'DNA.rs')
-rw-r--r-- | DNA.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ fn count_nucleotides(dna: &str) -> (int, int, int, int) { 'C' => c += 1, 'G' => g += 1, 'T' => t += 1, - _ => fail ~"Unexpected character found" + _ => fail!(~"Unexpected character found"), } } (a, c, g, t) @@ -23,7 +23,7 @@ fn count_nucleotides_2(dna: &str) -> (int, int, int, int) { 'C' => (a, c + 1, g, t), 'G' => (a, c, g + 1, t), 'T' => (a, c, g, t + 1), - _ => fail ~"Unexpected character found" + _ => fail!(~"Unexpected character found"), } } } |