Skip to content

Commit 123a071

Browse files
Smirlonsi
authored andcommittedJul 14, 2024
Fix typo in docs
1 parent c549e0d commit 123a071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎docs/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2428,9 +2428,9 @@ When a `ghttp` server receives a request it first checks against the set of hand
24282428

24292429
So far you have seen examples of using `server.URL()` to get the string URL of the test server. This is ok if you are testing code where you can pass the URL. In some cases you might need to pass a `http.Client` or similar.
24302430

2431-
You can use `server.RounderTripper(nil)` to create a `http.RounderTripper` which will redirect requests to the test server.
2431+
You can use `server.RoundTripper(nil)` to create a `http.RoundTripper` which will redirect requests to the test server.
24322432

2433-
The method takes another `http.RounderTripper` to make the request to the test server, this allows chaining `http.Transports` or otherwise.
2433+
The method takes another `http.RoundTripper` to make the request to the test server, this allows chaining `http.Transports` or otherwise.
24342434

24352435
If passed `nil`, then `http.DefaultTransport` is used to make the request.
24362436

@@ -2441,7 +2441,7 @@ Describe("The http client", func() {
24412441

24422442
BeforeEach(func() {
24432443
server = ghttp.NewServer()
2444-
httpClient = &http.Client{Transport: server.RounderTripper(nil)}
2444+
httpClient = &http.Client{Transport: server.RoundTripper(nil)}
24452445
})
24462446

24472447
AfterEach(func() {

0 commit comments

Comments
 (0)