misspelled route function names

This commit is contained in:
Stephen McQuay 2013-05-08 23:21:42 -07:00
parent 8ae92884dd
commit a8ceec3d6b

View File

@ -14,7 +14,7 @@ type prob struct {
Last int
}
func attempt(w http.ResponseWriter, req *http.Request) {
func problem(w http.ResponseWriter, req *http.Request) {
operation := "+"
if r := rand.Intn(2); r == 0 {
operation = "-"
@ -43,6 +43,6 @@ func attempt(w http.ResponseWriter, req *http.Request) {
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")
}