Skip to content

Commit

Permalink
Clarify behaviour of Name method if called multiple times.
Browse files Browse the repository at this point in the history
  • Loading branch information
kisielk committed Aug 7, 2018
1 parent cb46983 commit 815b8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (r *Route) GetHandler() http.Handler {
// Name -----------------------------------------------------------------------

// Name sets the name for the route, used to build URLs.
// If the name was registered already it will be overwritten.
// It is an error to call Name more than once on a route.
func (r *Route) Name(name string) *Route {
if r.name != "" {
r.err = fmt.Errorf("mux: route already has name %q, can't set %q",
Expand Down

0 comments on commit 815b8c6

Please sign in to comment.