diff options
Diffstat (limited to 'libgo/go/net/parse.go')
-rw-r--r-- | libgo/go/net/parse.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/net/parse.go b/libgo/go/net/parse.go index 80836a1..2c6b98a 100644 --- a/libgo/go/net/parse.go +++ b/libgo/go/net/parse.go @@ -106,14 +106,14 @@ func splitAtBytes(s string, t string) []string { for i := 0; i < len(s); i++ { if byteIndex(t, s[i]) >= 0 { if last < i { - a[n] = string(s[last:i]) + a[n] = s[last:i] n++ } last = i + 1 } } if last < len(s) { - a[n] = string(s[last:]) + a[n] = s[last:] n++ } return a[0:n] |