diff options
author | Russ Cox <rsc@golang.org> | 2009-02-13 14:48:32 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-02-13 14:48:32 -0800 |
commit | 526837026995aa88a05eb73f83f8573d5c024882 (patch) | |
tree | a3b6c6ab9f68981976738f0efc7988353d5a0d82 /src/lib/http/server.go | |
parent | c2feca8a8dd68958c476a71b1e07b5cf43421a98 (diff) | |
download | golang-526837026995aa88a05eb73f83f8573d5c024882.tar.gz |
convert composite literals from { } to ( ).
only non-trivial changes are in
convlit1.go
golden.out
R=gri
OCL=25019
CL=25024
Diffstat (limited to 'src/lib/http/server.go')
-rw-r--r-- | src/lib/http/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/http/server.go b/src/lib/http/server.go index ffb81cc90..086621ae1 100644 --- a/src/lib/http/server.go +++ b/src/lib/http/server.go @@ -247,7 +247,7 @@ func (h *redirectHandler) ServeHTTP(c *Conn, req *Request) { } func RedirectHandler(to string) Handler { - return &redirectHandler{to}; + return &redirectHandler(to); } // Path-based HTTP request multiplexer. @@ -265,7 +265,7 @@ type ServeMux struct { } func NewServeMux() *ServeMux { - return &ServeMux{make(map[string] Handler)}; + return &ServeMux(make(map[string] Handler)); } var DefaultServeMux = NewServeMux(); |