diff --git a/README.md b/README.md index 6676b76..747ae79 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ import ( func main() { router := gin.Default() pprof.Register(router) - adminGroup := r.Group("/admin", func(c *gin.Context) { + adminGroup := router.Group("/admin", func(c *gin.Context) { if c.Request.Header.Get("Authorization") != "foobar" { c.AbortWithStatus(http.StatusForbidden) return