Skip to content

Commit

Permalink
router: clarify that MatchedRoutePathParam is only used when Router.S…
Browse files Browse the repository at this point in the history
…aveMatchedRoutePath is set
  • Loading branch information
julienschmidt committed Jan 13, 2020
1 parent 6455b8a commit bbc3ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func ParamsFromContext(ctx context.Context) Params {
}

// MatchedRoutePathParam is the Param name under which the path of the matched
// route is stored.
// route is stored, if Router.SaveMatchedRoutePath is set.
var MatchedRoutePathParam = "$matchedRoutePath"

// MatchedRoutePath retrieves the path of the matched route.
Expand Down

0 comments on commit bbc3ec1

Please sign in to comment.