From 241bad16f0dcc96403c697e13286d5444e67a9d2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 8 Mar 2013 20:27:29 -0600 Subject: these should take borrowed pointers --- rosalind/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rosalind/str.rs') diff --git a/rosalind/str.rs b/rosalind/str.rs index 0fac1cd..7837055 100644 --- a/rosalind/str.rs +++ b/rosalind/str.rs @@ -10,7 +10,7 @@ fn reverse(s: &str) -> ~str { r } -pure fn hamming(string1: ~str, string2: ~str) -> int { +pure fn hamming(string1: &str, string2: &str) -> int { let mut hamming = 0; for str::each_chari(string1) |i, ch| { if ch != str::char_at(string2, i) { -- cgit v1.2.3