Browse Source

miss a "s" in the URL

zhibinr 11 years ago
parent
commit
9148477cfd
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.
func GetGreet(c web.C, w http.ResponseWriter, r *http.Request) {
id, err := strconv.Atoi(c.URLParams["id"])


Loading…
Cancel
Save