Browse Source

Merge pull request #109 from zhibinr/patch-1

miss a "s" in the URL
Carl Jackson 11 years ago
parent
commit
33ec673ad9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      example/main.go

+ 1
- 1
example/main.go View File

@ -131,7 +131,7 @@ func GetUser(c web.C, w http.ResponseWriter, r *http.Request) {
} }
} }
// GetGreet finds a particular greet by ID (GET "/greet/\d+"). Does no bounds
// GetGreet finds a particular greet by ID (GET "/greets/\d+"). Does no bounds
// checking, so will probably panic. // checking, so will probably panic.
func GetGreet(c web.C, w http.ResponseWriter, r *http.Request) { func GetGreet(c web.C, w http.ResponseWriter, r *http.Request) {
id, err := strconv.Atoi(c.URLParams["id"]) id, err := strconv.Atoi(c.URLParams["id"])


Loading…
Cancel
Save