Commit 4481df64 authored by Rob Pike's avatar Rob Pike

fix spelling that is correct but bothers me anyway

R=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=33496
CL=33519
parent 6ece1b56
...@@ -73,7 +73,7 @@ func shouldEscape(c byte) bool { ...@@ -73,7 +73,7 @@ func shouldEscape(c byte) bool {
func URLUnescape(s string) (string, os.Error) { func URLUnescape(s string) (string, os.Error) {
// Count %, check that they're well-formed. // Count %, check that they're well-formed.
n := 0; n := 0;
anyPlusses := false; hasPlus := false;
for i := 0; i < len(s); { for i := 0; i < len(s); {
switch s[i] { switch s[i] {
case '%': case '%':
...@@ -87,14 +87,14 @@ func URLUnescape(s string) (string, os.Error) { ...@@ -87,14 +87,14 @@ func URLUnescape(s string) (string, os.Error) {
} }
i += 3; i += 3;
case '+': case '+':
anyPlusses = true; hasPlus = true;
i++; i++;
default: default:
i++ i++
} }
} }
if n == 0 && !anyPlusses { if n == 0 && !hasPlus {
return s, nil return s, nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment