misspelled route function names

This commit is contained in:
Stephen McQuay 2013-05-08 23:21:42 -07:00
parent 8ae92884dd
commit a8ceec3d6b
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ type prob struct {
Last int Last int
} }
func attempt(w http.ResponseWriter, req *http.Request) { func problem(w http.ResponseWriter, req *http.Request) {
operation := "+" operation := "+"
if r := rand.Intn(2); r == 0 { if r := rand.Intn(2); r == 0 {
operation = "-" operation = "-"
@ -43,6 +43,6 @@ func attempt(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, j) fmt.Fprintf(w, j)
} }
func problem(w http.ResponseWriter, req *http.Request) { func attempt(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, "hello world") fmt.Fprintf(w, "hello world")
} }