Skip to content

Commit

Permalink
修复单词错误
Browse files Browse the repository at this point in the history
  • Loading branch information
qingtao committed Dec 26, 2019
1 parent 5b1d298 commit 17320e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baidu/aip/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (c *Client) parseReponse(resp *http.Response, typ string, v interface{}) (e
if v == nil {
return nil
}
if err = json.Unmarshal(res.Reult, v); err != nil {
if err = json.Unmarshal(res.Result, v); err != nil {
return fmt.Errorf("parse %s data: %w", typ, err)
}
default:
Expand Down
2 changes: 1 addition & 1 deletion baidu/aip/client/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Response struct {
// cached
Cached int `json:"cached,omitempty"`
// 响应结果
Reult json.RawMessage `json:"result,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
}

// Code 实现RequestError
Expand Down

0 comments on commit 17320e2

Please sign in to comment.