diff --git a/website/content/guide/middleware.md b/website/content/guide/middleware.md index 4cb8b450..64fe104a 100644 --- a/website/content/guide/middleware.md +++ b/website/content/guide/middleware.md @@ -33,8 +33,8 @@ BasicAuth middleware provides an HTTP basic authentication. *Example* ```go -e.Group("/admin") -e.Use(mw.BasicAuth(func(usr, pwd string) bool { +g := e.Group("/admin") +g.Use(mw.BasicAuth(func(usr, pwd string) bool { if usr == "joe" && pwd == "secret" { return true }