Commit 3308891c authored by Olivier Duperray's avatar Olivier Duperray Committed by Rob Pike

net/http: fix trivial example server

R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5479061
parent d8d32106
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment