Skip to content

Commit 85123bf

Browse files
sumanpaikdevcoreydaley
andauthoredAug 17, 2023
changed the routeVariables text content. (#708)
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]>
1 parent 79f2f45 commit 85123bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ func TestMetricsHandler(t *testing.T) {
749749
750750
rr := httptest.NewRecorder()
751751
752-
// Need to create a router that we can pass the request through so that the vars will be added to the context
752+
// To add the vars to the context,
753+
// we need to create a router through which we can pass the request.
753754
router := mux.NewRouter()
754755
router.HandleFunc("/metrics/{type}", MetricsHandler)
755756
router.ServeHTTP(rr, req)

0 commit comments

Comments
 (0)
Please sign in to comment.