Skip to content

Commit

Permalink
changed the routeVariables text content. (#708)
Browse files Browse the repository at this point in the history
Before changing the context there is a blind spot, and for this reason,
decided to add a line break.

Co-authored-by: Corey Daley <[email protected]>
  • Loading branch information
sumanpaikdev and coreydaley authored Aug 17, 2023
1 parent 79f2f45 commit 85123bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ func TestMetricsHandler(t *testing.T) {
rr := httptest.NewRecorder()
// Need to create a router that we can pass the request through so that the vars will be added to the context
// To add the vars to the context,
// we need to create a router through which we can pass the request.
router := mux.NewRouter()
router.HandleFunc("/metrics/{type}", MetricsHandler)
router.ServeHTTP(rr, req)
Expand Down

0 comments on commit 85123bf

Please sign in to comment.