[Go] Fix golang comment typos (#9207)

* fix go comment typo insensitive

* fix go comment typo response

* update samples
This commit is contained in:
mazrean 2021-04-08 10:59:31 +09:00 committed by GitHub
parent 9dda4aa2e8
commit 01ff635139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -112,7 +112,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}
// contains is a case insenstive match, finding needle in a haystack
// contains is a case insensitive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {

View File

@ -23,7 +23,7 @@ type APIResponse struct {
Payload []byte `json:"-"`
}
// NewAPIResponse returns a new APIResonse object.
// NewAPIResponse returns a new APIResponse object.
func NewAPIResponse(r *http.Response) *APIResponse {
response := &APIResponse{Response: r}

View File

@ -115,7 +115,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}
// contains is a case insenstive match, finding needle in a haystack
// contains is a case insensitive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {

View File

@ -32,7 +32,7 @@ type APIResponse struct {
Payload []byte `json:"-"`
}
// NewAPIResponse returns a new APIResonse object.
// NewAPIResponse returns a new APIResponse object.
func NewAPIResponse(r *http.Response) *APIResponse {
response := &APIResponse{Response: r}

View File

@ -100,7 +100,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}
// contains is a case insenstive match, finding needle in a haystack
// contains is a case insensitive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {

View File

@ -32,7 +32,7 @@ type APIResponse struct {
Payload []byte `json:"-"`
}
// NewAPIResponse returns a new APIResonse object.
// NewAPIResponse returns a new APIResponse object.
func NewAPIResponse(r *http.Response) *APIResponse {
response := &APIResponse{Response: r}

View File

@ -118,7 +118,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}
// contains is a case insenstive match, finding needle in a haystack
// contains is a case insensitive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {

View File

@ -32,7 +32,7 @@ type APIResponse struct {
Payload []byte `json:"-"`
}
// NewAPIResponse returns a new APIResonse object.
// NewAPIResponse returns a new APIResponse object.
func NewAPIResponse(r *http.Response) *APIResponse {
response := &APIResponse{Response: r}