Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cch123 committed Aug 8, 2018
1 parent 34a5869 commit 156a874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch5-web/ch5-03-middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func timeMiddleware(next http.Handler) http.Handler {
}

func main() {
http.HandleFunc("/", timeMiddleware(hello))
http.Handle("/", timeMiddleware(http.HandlerFunc(hello)))
err := http.ListenAndServe(":8080", nil)
...
}
Expand Down

0 comments on commit 156a874

Please sign in to comment.