diff --git a/doc.go b/doc.go index 013f088..7f12986 100644 --- a/doc.go +++ b/doc.go @@ -261,7 +261,7 @@ Middlewares can be added to a router using `Router.Use()`: r := mux.NewRouter() r.HandleFunc("/", handler) - r.AddMiddleware(simpleMw) + r.Use(simpleMw) A more complex authentication middleware, which maps session token to users, could be written as: