From 1d258a554a4a09a9f75c65ebc0f388c2bbb318a1 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Wed, 2 Mar 2011 10:10:12 +1100 Subject: [PATCH] http: give ParseHTTPVersion a real example. R=rsc CC=golang-dev https://golang.org/cl/4239050 --- src/pkg/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index 0fd5df4e3b..a7dc328a00 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -316,7 +316,7 @@ func atoi(s string, i int) (n, i1 int, ok bool) { } // ParseHTTPVersion parses a HTTP version string. -// "HTTP/1.2" returns (1, 2, true). +// "HTTP/1.0" returns (1, 0, true). func ParseHTTPVersion(vers string) (major, minor int, ok bool) { if len(vers) < 5 || vers[0:5] != "HTTP/" { return 0, 0, false