summaryrefslogtreecommitdiff
path: root/src/pkg/http/lex.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-03-30 10:34:57 -0700
committerRuss Cox <rsc@golang.org>2010-03-30 10:34:57 -0700
commit74119689619c24f5871056d13d07d56f69ad5f60 (patch)
tree2ad4647a66bf21bf56d761edba537c237b8e318a /src/pkg/http/lex.go
parent74339da2d519a795f33d78f8694eb7b97065d9d7 (diff)
downloadgolang-74119689619c24f5871056d13d07d56f69ad5f60.tar.gz
single argument panic
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
Diffstat (limited to 'src/pkg/http/lex.go')
-rw-r--r--src/pkg/http/lex.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pkg/http/lex.go b/src/pkg/http/lex.go
index d25c4e403..93b67e701 100644
--- a/src/pkg/http/lex.go
+++ b/src/pkg/http/lex.go
@@ -10,20 +10,16 @@ func isSeparator(c byte) bool {
switch c {
case '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ', '\t':
return true
- default:
- return false
}
- panic()
+ return false
}
func isSpace(c byte) bool {
switch c {
case ' ', '\t', '\r', '\n':
return true
- default:
- return false
}
- panic()
+ return false
}
func isCtl(c byte) bool { return (0 <= c && c <= 31) || c == 127 }