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