Skip to content

Commit fca7973

Browse files
authored
chore: Fix typos in comments and tests (#4093)
1 parent 44588e2 commit fca7973

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

github/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (s *ChecksService) SetCheckSuitePreferences(ctx context.Context, owner, rep
433433
return checkSuitePrefResults, resp, nil
434434
}
435435

436-
// CreateCheckSuiteOptions sets up parameters to manually create a check suites.
436+
// CreateCheckSuiteOptions sets up parameters to manually create a check suite.
437437
type CreateCheckSuiteOptions struct {
438438
HeadSHA string `json:"head_sha"` // The sha of the head commit. (Required.)
439439
HeadBranch *string `json:"head_branch,omitempty"` // The name of the head branch where the code changes are implemented.

github/gen-iterators.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (t *templateData) processMethods(f *ast.File) error {
296296
continue
297297
}
298298

299-
methodInfo, ok := t.isMethodIteratable(fd)
299+
methodInfo, ok := t.isMethodIterable(fd)
300300
if !ok {
301301
continue
302302
}
@@ -313,7 +313,7 @@ func (t *templateData) processMethods(f *ast.File) error {
313313
return nil
314314
}
315315

316-
func (t *templateData) isMethodIteratable(fd *ast.FuncDecl) (*methodInfo, bool) {
316+
func (t *templateData) isMethodIterable(fd *ast.FuncDecl) (*methodInfo, bool) {
317317
if !validateMethodShape(fd) {
318318
return nil, false
319319
}

github/repos_environments_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestRequiredReviewer_UnmarshalJSON(t *testing.T) {
4646
wantRule: []*RequiredReviewer{},
4747
wantError: true,
4848
},
49-
"Wrong Type Type in Reviewer Object": {
49+
"Wrong Type in Reviewer Object": {
5050
data: []byte(`[{"type": 1, "reviewer": {"id": 1}}]`),
5151
wantRule: []*RequiredReviewer{{Type: nil, Reviewer: nil}},
5252
wantError: true,

scrape/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ for data that cannot be retrieved via the REST or GraphQL APIs.
88

99
**Add only what you need.** Whereas the main go-github library attempts to
1010
implement the entire GitHub REST API, there is little point in trying to do that
11-
here. Certainly, feel free to contribution patches to get data you actually
11+
here. Certainly, feel free to contribute patches to get data you actually
1212
need, but I'd rather not try and provide exhaustive coverage of all GitHub data
1313
here.
1414

0 commit comments

Comments
 (0)