Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Feb 6, 2017
1 parent e931318 commit f89cf25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter6/simple_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Page struct {
Title, Content string
}

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

func main() {
http.HandleFunc("/", diaplayPage)
http.HandleFunc("/", displayPage)
http.ListenAndServe(":8080", nil)
}

0 comments on commit f89cf25

Please sign in to comment.