diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-03-08 20:27:29 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-03-08 20:27:29 -0600 |
commit | 241bad16f0dcc96403c697e13286d5444e67a9d2 (patch) | |
tree | 32c2fc1ba7cb530168abb0b61ad46f212e1ece9c /rosalind/dna.rs | |
parent | ae98925062d5a392a73df4a1456df3a4a3be9b18 (diff) | |
download | rosalind-241bad16f0dcc96403c697e13286d5444e67a9d2.tar.gz rosalind-241bad16f0dcc96403c697e13286d5444e67a9d2.zip |
these should take borrowed pointers
Diffstat (limited to 'rosalind/dna.rs')
-rw-r--r-- | rosalind/dna.rs | 2 |
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 { |