You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mux.NewRouter() returns *mux.Router but HeadersRegexp is defined on *Route. This is a small mistake and is not a major issue because the next (more verbose) example clarifies the mistake.
MIGRATED - See upstream comments
From mux created by Algebra8: gorilla#666
Describe the bug
The documentation example for
func (*Route) HeadersRegexp
is incorrect:mux.NewRouter()
returns*mux.Router
butHeadersRegexp
is defined on*Route
. This is a small mistake and is not a major issue because the next (more verbose) example clarifies the mistake.However, it's a mistake.
Should be something like:
Versions
Steps to Reproduce
"Bug" is in documentation; triggered by looking at it.
Expected behavior
As mentioned above, the example should look like:
The text was updated successfully, but these errors were encountered: