From: Rob Pike Date: Wed, 19 Aug 2009 17:07:31 +0000 (-0700) Subject: fix spelling that is correct but bothers me anyway X-Git-Tag: weekly.2009-11-06~835 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4481df645bd0fc6392b560b54e6178efc70d0b1e;p=gostls13.git fix spelling that is correct but bothers me anyway R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=33496 CL=33519 --- diff --git a/src/pkg/http/url.go b/src/pkg/http/url.go index 87612a96af..bd73cd4ad2 100644 --- a/src/pkg/http/url.go +++ b/src/pkg/http/url.go @@ -73,7 +73,7 @@ func shouldEscape(c byte) bool { func URLUnescape(s string) (string, os.Error) { // Count %, check that they're well-formed. n := 0; - anyPlusses := false; + hasPlus := false; for i := 0; i < len(s); { switch s[i] { case '%': @@ -87,14 +87,14 @@ func URLUnescape(s string) (string, os.Error) { } i += 3; case '+': - anyPlusses = true; + hasPlus = true; i++; default: i++ } } - if n == 0 && !anyPlusses { + if n == 0 && !hasPlus { return s, nil }