net/http: further simplify example program

(should have caught this in review.)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5478066
This commit is contained in:
Rob Pike 2011-12-11 09:29:44 -08:00
parent 7e797be7a3
commit e505c9ccac

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.Error())
// log.Fatal("ListenAndServe: ", err)
// }
// }
func ListenAndServe(addr string, handler Handler) error {