We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79f2f45 commit 85123bfCopy full SHA for 85123bf
README.md
@@ -749,7 +749,8 @@ func TestMetricsHandler(t *testing.T) {
749
750
rr := httptest.NewRecorder()
751
752
- // 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,
753
+ // we need to create a router through which we can pass the request.
754
router := mux.NewRouter()
755
router.HandleFunc("/metrics/{type}", MetricsHandler)
756
router.ServeHTTP(rr, req)
0 commit comments