From 0ec67de0e04d3c80762771293b1b7750424534e3 Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser <82587306+ipreferlinux@users.noreply.github.com> Date: Fri, 23 Apr 2021 14:29:01 +0200 Subject: [PATCH] fix typo (#436) --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index 699bb95cd..238e53649 100644 --- a/index.md +++ b/index.md @@ -1512,7 +1512,7 @@ So far, we've only made assertions about the outgoing request. Clients are also We use `ghttp.RespondWith` to specify the response return by the server. In this case we're passing back a status code of `200` (`http.StatusOK`) and a pile of JSON. We then assert, in the test, that the client succeeds and returns the correct set of sprockets. -The fact that details of the JSON encoding are bleeding into this test is somewhat unfortunate, and there's a lot of repetition going on. `ghttp` provides a `RepondWithJSONEncoded` handler that accepts an arbitrary object and JSON encodes it for you. Here's a cleaner test: +The fact that details of the JSON encoding are bleeding into this test is somewhat unfortunate, and there's a lot of repetition going on. `ghttp` provides a `RespondWithJSONEncoded` handler that accepts an arbitrary object and JSON encodes it for you. Here's a cleaner test: ```go Describe("The sprockets client", func() {