Skip to content

Commit f89cf25

Browse files
committed
typo fix
1 parent e931318 commit f89cf25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter6/simple_template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type Page struct {
99
Title, Content string
1010
}
1111

12-
func diaplayPage(w http.ResponseWriter, r *http.Request) {
12+
func displayPage(w http.ResponseWriter, r *http.Request) {
1313
p := &Page{
1414
Title: "An Example",
1515
Content: "Have fun stormin’ da castle.",
@@ -19,6 +19,6 @@ func diaplayPage(w http.ResponseWriter, r *http.Request) {
1919
}
2020

2121
func main() {
22-
http.HandleFunc("/", diaplayPage)
22+
http.HandleFunc("/", displayPage)
2323
http.ListenAndServe(":8080", nil)
2424
}

0 commit comments

Comments
 (0)