From 85123bf20e069b156415b871dea10517f6a8938a Mon Sep 17 00:00:00 2001 From: Suman Paik Date: Thu, 17 Aug 2023 20:59:52 +0530 Subject: [PATCH] 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 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3cdc9c4..9e49b24b 100644 --- a/README.md +++ b/README.md @@ -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)