Fixing typos (#706)
This commit is contained in:
committed by
GitHub
parent
e0d0801ac7
commit
ea551f422e
@@ -636,7 +636,7 @@ FunctionDefinition{
|
|||||||
},
|
},
|
||||||
"unit": {
|
"unit": {
|
||||||
Type: jsonschema.String,
|
Type: jsonschema.String,
|
||||||
Enum: []string{"celcius", "fahrenheit"},
|
Enum: []string{"celsius", "fahrenheit"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Required: []string{"location"},
|
Required: []string{"location"},
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ func (c *Client) ListAssistants(
|
|||||||
order *string,
|
order *string,
|
||||||
after *string,
|
after *string,
|
||||||
before *string,
|
before *string,
|
||||||
) (reponse AssistantsList, err error) {
|
) (response AssistantsList, err error) {
|
||||||
urlValues := url.Values{}
|
urlValues := url.Values{}
|
||||||
if limit != nil {
|
if limit != nil {
|
||||||
urlValues.Add("limit", fmt.Sprintf("%d", *limit))
|
urlValues.Add("limit", fmt.Sprintf("%d", *limit))
|
||||||
@@ -208,7 +208,7 @@ func (c *Client) ListAssistants(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err = c.sendRequest(req, &reponse)
|
err = c.sendRequest(req, &response)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ func TestClientReturnsRequestBuilderErrors(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestClientReturnsRequestBuilderErrorsAddtion(t *testing.T) {
|
func TestClientReturnsRequestBuilderErrorsAddition(t *testing.T) {
|
||||||
config := DefaultConfig(test.GetTestToken())
|
config := DefaultConfig(test.GetTestToken())
|
||||||
client := NewClientWithConfig(config)
|
client := NewClientWithConfig(config)
|
||||||
client.requestBuilder = &failingRequestBuilder{}
|
client.requestBuilder = &failingRequestBuilder{}
|
||||||
|
|||||||
2
error.go
2
error.go
@@ -23,7 +23,7 @@ type InnerError struct {
|
|||||||
ContentFilterResults ContentFilterResults `json:"content_filter_result,omitempty"`
|
ContentFilterResults ContentFilterResults `json:"content_filter_result,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequestError provides informations about generic request errors.
|
// RequestError provides information about generic request errors.
|
||||||
type RequestError struct {
|
type RequestError struct {
|
||||||
HTTPStatusCode int
|
HTTPStatusCode int
|
||||||
Err error
|
Err error
|
||||||
|
|||||||
Reference in New Issue
Block a user