Skip to content

Commit 321dfd3

Browse files
committed
Merge pull request astaxie#446 from waitingkuo/patch-1
Update 13.2md
2 parents 642cfbe + 2583c59 commit 321dfd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zh/13.2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ HTTP路由组件负责将HTTP请求交到对应的函数处理(或者是一个st
1414
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
1515
}
1616

17-
http.Handle("/foo", fooHandler)
17+
http.HandleFunc("/foo", fooHandler)
1818

1919
http.HandleFunc("/bar", func(w http.ResponseWriter, r *http.Request) {
2020
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))

0 commit comments

Comments
 (0)