1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:14:40 -07:00

net/http: fix trivial example server

R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5479061
This commit is contained in:
Olivier Duperray 2011-12-11 09:11:57 -08:00 committed by Rob Pike
parent d8d321068b
commit 3308891c9d

View File

@ -1027,7 +1027,7 @@ func (srv *Server) Serve(l net.Listener) error {
// http.HandleFunc("/hello", HelloServer)
// err := http.ListenAndServe(":12345", nil)
// if err != nil {
// log.Fatal("ListenAndServe: ", err.String())
// log.Fatal("ListenAndServe: ", err.Error())
// }
// }
func ListenAndServe(addr string, handler Handler) error {