summaryrefslogtreecommitdiffstats
path: root/rosalind/dna.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-08 20:27:29 -0600
committerJesse Luehrs <doy@tozt.net>2013-03-08 20:27:29 -0600
commit241bad16f0dcc96403c697e13286d5444e67a9d2 (patch)
tree32c2fc1ba7cb530168abb0b61ad46f212e1ece9c /rosalind/dna.rs
parentae98925062d5a392a73df4a1456df3a4a3be9b18 (diff)
downloadrosalind-241bad16f0dcc96403c697e13286d5444e67a9d2.tar.gz
rosalind-241bad16f0dcc96403c697e13286d5444e67a9d2.zip
these should take borrowed pointers
Diffstat (limited to 'rosalind/dna.rs')
-rw-r--r--rosalind/dna.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rosalind/dna.rs b/rosalind/dna.rs
index a2ee73d..7279c36 100644
--- a/rosalind/dna.rs
+++ b/rosalind/dna.rs
@@ -1,6 +1,6 @@
use str = core::str;
-pure fn gc_content(dna: ~str) -> float {
+pure fn gc_content(dna: &str) -> float {
let mut content = 0;
for str::each_char(dna) |ch| {
match ch {