]> Cypherpunks repositories - gostls13.git/commitdiff
fix spelling that is correct but bothers me anyway
authorRob Pike <r@golang.org>
Wed, 19 Aug 2009 17:07:31 +0000 (10:07 -0700)
committerRob Pike <r@golang.org>
Wed, 19 Aug 2009 17:07:31 +0000 (10:07 -0700)
R=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=33496
CL=33519

src/pkg/http/url.go

index 87612a96af6a8041b480937865ca8c5680906fd0..bd73cd4ad26e4c96c029764078a121355a90a937 100644 (file)
@@ -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
        }