Skip to content

Commit 43a5e9e

Browse files
Merge pull request #3 from spiegel-im-spiegel/fix-bugs
Fix typo
2 parents 33af60d + c7f3884 commit 43a5e9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func TestMakeLookupCommand(t *testing.T) {
2424
if u.String() != tc.str {
2525
t.Errorf("Client.MakeLookupCommand() is \"%v\", want \"%v\"", u.String(), tc.str)
2626
}
27-
u = (*Server)(nil).CreateClient(WithContext(context.Background()), WithHttpCilent(&http.Client{})).MakeLookupCommand(tc.v)
27+
u = (*Server)(nil).CreateClient(WithContext(context.Background()), WithHttpClient(&http.Client{})).MakeLookupCommand(tc.v)
2828
if u.String() != tc.str {
2929
t.Errorf("Client.MakeLookupCommand() is \"%v\", want \"%v\"", u.String(), tc.str)
3030
}

server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func WithContext(ctx context.Context) ClientOptFunc {
8888
}
8989
}
9090

91-
//WithHttpCilent returns function for setting http.Client
92-
func WithHttpCilent(client *http.Client) ClientOptFunc {
91+
//WithHttpClient returns function for setting http.Client
92+
func WithHttpClient(client *http.Client) ClientOptFunc {
9393
return func(c *Client) {
9494
if c != nil {
9595
c.client = client

0 commit comments

Comments
 (0)