Skip to content

Commit

Permalink
fix custom HTTP Client example
Browse files Browse the repository at this point in the history
The example got an error because it didnt use a proper go syntax.
When an argument is called in a newline, it should be ended with a
comma.
  • Loading branch information
johanavril authored and rShetty committed Jan 27, 2020
1 parent ef69e0b commit 811af1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,8 @@ This can be done for the hystrix client as well
```
client := httpclient.NewClient(
httpclient.WithHTTPClient(&myHTTPClient{
client: http.Client{Timeout: 25 * time.Millisecond}
}
)
client: http.Client{Timeout: 25 * time.Millisecond},
}),
)
// The rest is the same as the first example
Expand Down

0 comments on commit 811af1f

Please sign in to comment.